Fixed issue 6245. (ISO Path's "Remove" button not being disabled when it should be)
This commit is contained in:
parent
620bf0b304
commit
8230da26fe
|
@ -1221,14 +1221,7 @@ void CConfigMain::WiiSettingsChanged(wxCommandEvent& event)
|
||||||
// -------------------
|
// -------------------
|
||||||
void CConfigMain::ISOPathsSelectionChanged(wxCommandEvent& WXUNUSED (event))
|
void CConfigMain::ISOPathsSelectionChanged(wxCommandEvent& WXUNUSED (event))
|
||||||
{
|
{
|
||||||
if (!ISOPaths->GetStringSelection().empty())
|
RemoveISOPath->Enable(ISOPaths->GetSelection() != wxNOT_FOUND);
|
||||||
{
|
|
||||||
RemoveISOPath->Enable(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
RemoveISOPath->Enable(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
|
void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
|
||||||
|
@ -1255,6 +1248,11 @@ void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
bRefreshList = true;
|
bRefreshList = true;
|
||||||
ISOPaths->Delete(ISOPaths->GetSelection());
|
ISOPaths->Delete(ISOPaths->GetSelection());
|
||||||
|
|
||||||
|
// This seems to not be activated on Windows when it should be. wxw bug?
|
||||||
|
#ifdef _WIN32
|
||||||
|
ISOPathsSelectionChanged(wxCommandEvent());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save changes right away
|
// Save changes right away
|
||||||
|
|
Loading…
Reference in New Issue