summaryrefslogtreecommitdiff
path: root/shared/appMain.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
commit9a2a524f1e311853d08050be2dcdddc09ac7759a (patch)
treed8e4a24169fce88c2d89931d58514889a0bcb0ea /shared/appMain.cpp
parent2.3 (diff)
downloadFreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip
3.0
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