From 087760659ad2d931f9bf950ec1833a68bd0c58e1 Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Mon, 9 Apr 2012 19:03:46 +0300 Subject: [PATCH] Fix the project options dialog on Win32 --- src/platform/wxwidgets/romselect.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/platform/wxwidgets/romselect.cpp b/src/platform/wxwidgets/romselect.cpp index 3630f7f1..197e3d1e 100644 --- a/src/platform/wxwidgets/romselect.cpp +++ b/src/platform/wxwidgets/romselect.cpp @@ -964,11 +964,10 @@ wxwin_project::~wxwin_project() void wxwin_project::on_tab_select(wxNotebookEvent& e) { int p = e.GetSelection(); - if(p == -1) { - notebook->SetSelection(0); - p = 0; - } - if(p == 0) { + if(p < 0) { + load->Disable(); + return; + } else if(p == 0) { load_file = true; load->SetLabel(wxT("Load")); } else if(p == 1) { @@ -977,6 +976,7 @@ void wxwin_project::on_tab_select(wxNotebookEvent& e) } wxCommandEvent e2; on_filename_change(e2); + e.Skip(); } void wxwin_project::on_ask_filename(wxCommandEvent& e)