diff options
| author | Phil Christensen <philc@microsoft.com> | 2017-02-15 21:20:29 -0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2017-02-15 21:20:29 -0800 |
| commit | 34b0b1b9d643a669ebfd3ac154003e61f693a3d2 (patch) | |
| tree | 1a142e0215b0cd9825cc6945efef5bae0fcabf61 /Source/Core/DolphinWX/Config/PathConfigPane.cpp | |
| parent | 2ed61b0ee1d18547d1dc662bf538c7eaab4886f7 (diff) | |
wxWidgets expects non-const
revert my previous change to these files and instead create a named temporary.
Diffstat (limited to 'Source/Core/DolphinWX/Config/PathConfigPane.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Config/PathConfigPane.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Config/PathConfigPane.cpp b/Source/Core/DolphinWX/Config/PathConfigPane.cpp index d810870f48..2dc3078a56 100644 --- a/Source/Core/DolphinWX/Config/PathConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/PathConfigPane.cpp @@ -147,7 +147,7 @@ void PathConfigPane::BindEvents() Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreNotRunning); } -void PathConfigPane::OnISOPathSelectionChanged(const wxCommandEvent& event) +void PathConfigPane::OnISOPathSelectionChanged(wxCommandEvent& event) { m_remove_iso_path_button->Enable(m_iso_paths_listbox->GetSelection() != wxNOT_FOUND); } @@ -187,7 +187,8 @@ void PathConfigPane::OnRemoveISOPath(wxCommandEvent& event) // This seems to not be activated on Windows when it should be. wxw bug? #ifdef _WIN32 - OnISOPathSelectionChanged(wxCommandEvent()); + wxCommandEvent dummy_event{}; + OnISOPathSelectionChanged(dummy_event); #endif SaveISOPathChanges(); |
