summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThales Lima <thaleslima.ufu@gmail.com>2017-10-24 22:05:52 -0200
committerThales Lima <thaleslima.ufu@gmail.com>2017-10-24 22:05:52 -0200
commitc53fc819fe6dfe15dc3083b71e0161a68c8b32b5 (patch)
tree887f3a63ceb1e801c0adfa3390d5d56c048a5007
parent39a34b99185b3c046fb4427d07dd333575962e29 (diff)
downloadPSP.git-c53fc819fe6dfe15dc3083b71e0161a68c8b32b5.tar.gz
PSP.git-c53fc819fe6dfe15dc3083b71e0161a68c8b32b5.tar.xz
PSP.git-c53fc819fe6dfe15dc3083b71e0161a68c8b32b5.zip
Some minor fixes for linux version
-rw-r--r--Project/GeneratorStabForm.cpp8
-rw-r--r--Project/MainFrame.cpp4
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++;
}
}