summaryrefslogtreecommitdiff
path: root/wx+/app_main.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
commit237aedc590b58c0e69d7dfcac92b5f767b7c004a (patch)
tree83f361a82ba483f2daf83b677e8685cd953812d9 /wx+/app_main.h
parent4.5 (diff)
downloadFreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.gz
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.bz2
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.zip
4.6
Diffstat (limited to 'wx+/app_main.h')
-rw-r--r--wx+/app_main.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/wx+/app_main.h b/wx+/app_main.h
index 6b375592..ae36a8de 100644
--- a/wx+/app_main.h
+++ b/wx+/app_main.h
@@ -23,14 +23,24 @@ bool mainWindowWasSet();
+
+
+
+
//######################## implementation ########################
inline
-bool& getMainWndStatus()
+bool& refMainWndStatus()
{
static bool status = false; //external linkage!
return status;
}
+inline
+bool& refQueryEnd()
+{
+ static bool status = false; //external linkage!
+ return status;
+}
inline
void setMainWindow(wxWindow* window)
@@ -38,12 +48,10 @@ void setMainWindow(wxWindow* window)
wxTheApp->SetTopWindow(window);
wxTheApp->SetExitOnFrameDelete(true);
- getMainWndStatus() = true;
+ refMainWndStatus() = true;
}
-
-inline
-bool mainWindowWasSet() { return getMainWndStatus(); }
+inline bool mainWindowWasSet() { return refMainWndStatus(); }
}
#endif // APPMAIN_H_INCLUDED
bgstack15