wxWidgets expects non-const

revert my previous change to these files and instead create a named temporary.
This commit is contained in:
Phil Christensen 2017-02-15 21:20:29 -08:00
parent 2ed61b0ee1
commit 34b0b1b9d6
2 changed files with 4 additions and 3 deletions

View File

@ -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();

View File

@ -22,7 +22,7 @@ private:
void LoadGUIValues();
void BindEvents();
void OnISOPathSelectionChanged(const wxCommandEvent&);
void OnISOPathSelectionChanged(wxCommandEvent&);
void OnRecursiveISOCheckBoxChanged(wxCommandEvent&);
void OnAddISOPath(wxCommandEvent&);
void OnRemoveISOPath(wxCommandEvent&);