diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2013-12-27 17:14:45 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2013-12-27 17:16:28 -0600 |
| commit | 8230da26febcadbcbf2ad3b03e0287aa485d333a (patch) | |
| tree | 13ed628724a301580ad27df14b7afad3f05cf791 /Source/Core | |
| parent | 620bf0b3047175186deb765f55c18ee2e6a0f6bb (diff) | |
Fixed issue 6245. (ISO Path's "Remove" button not being disabled when it should be)
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/Src/ConfigMain.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/Core/DolphinWX/Src/ConfigMain.cpp b/Source/Core/DolphinWX/Src/ConfigMain.cpp index 0dfa714318..28e03ae4f6 100644 --- a/Source/Core/DolphinWX/Src/ConfigMain.cpp +++ b/Source/Core/DolphinWX/Src/ConfigMain.cpp @@ -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) @@ -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 |
