diff options
-rw-r--r-- | Project/GeneratorStabForm.cpp | 8 | ||||
-rw-r--r-- | Project/MainFrame.cpp | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Project/GeneratorStabForm.cpp b/Project/GeneratorStabForm.cpp index ded927c..d1a3c6e 100644 --- a/Project/GeneratorStabForm.cpp +++ b/Project/GeneratorStabForm.cpp @@ -83,7 +83,9 @@ void GeneratorStabForm::OnEditAVRButtonClick(wxCommandEvent& event) cEditor->SetControlContainer(data.avr); cEditor->Show(); cEditor->SetJustOpened(true); - //EndModal(wxID_OK); + #ifdef __WXGTK__ + EndModal(wxID_OK); + #endif } } @@ -109,7 +111,9 @@ void GeneratorStabForm::OnSpeedGovernorButtonClick(wxCommandEvent& event) cEditor->SetControlContainer(data.speedGov); cEditor->Show(); cEditor->SetJustOpened(true); - //EndModal(wxID_OK); + #ifdef __WXGTK__ + EndModal(wxID_OK); + #endif } } diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp index 1cae4bc..429eabf 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -59,8 +59,8 @@ MainFrame::MainFrame(wxWindow* parent, wxLocale* locale, PropertiesData* initPro m_auiNotebook->AddPage(newWorkspace, newWorkspace->GetName(), true); m_auiNotebook->Layout(); - //newWorkspace->Redraw(); - //newWorkspace->SetJustOpened(true); + newWorkspace->Redraw(); + newWorkspace->SetJustOpened(true); m_projectNumber++; } } |