Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue 6245. (ISO Path's "Remove" button not being disabled when…
… it should be)
  • Loading branch information
jordan-woyak committed Dec 27, 2013
1 parent 620bf0b commit 8230da2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Source/Core/DolphinWX/Src/ConfigMain.cpp
Expand Up @@ -1221,14 +1221,7 @@ void CConfigMain::WiiSettingsChanged(wxCommandEvent& event)
// -------------------
void CConfigMain::ISOPathsSelectionChanged(wxCommandEvent& WXUNUSED (event))
{
if (!ISOPaths->GetStringSelection().empty())
{
RemoveISOPath->Enable(true);
}
else
{
RemoveISOPath->Enable(false);
}
RemoveISOPath->Enable(ISOPaths->GetSelection() != wxNOT_FOUND);
}

void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
Expand All @@ -1255,6 +1248,11 @@ void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
{
bRefreshList = true;
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
Expand Down

0 comments on commit 8230da2

Please sign in to comment.