summaryrefslogtreecommitdiff
path: root/shared/appMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shared/appMain.cpp')
-rw-r--r--shared/appMain.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/shared/appMain.cpp b/shared/appMain.cpp
new file mode 100644
index 00000000..fe6d3af5
--- /dev/null
+++ b/shared/appMain.cpp
@@ -0,0 +1,24 @@
+#include "appMain.h"
+#include <wx/window.h>
+#include <wx/app.h>
+
+using namespace FreeFileSync;
+
+
+bool AppMainWindow::mainWndAct = false;
+
+
+void FreeFileSync::AppMainWindow::setMainWindow(wxWindow* window)
+{
+ wxTheApp->SetTopWindow(window);
+ wxTheApp->SetExitOnFrameDelete(true);
+
+ assert (!mainWndAct);
+ mainWndAct = true;
+}
+
+
+bool AppMainWindow::mainWindowWasSet()
+{
+ return mainWndAct;
+}
bgstack15