aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorItay Grudev <itay@mail.bg>2012-12-23 00:12:38 +0200
committerItay Grudev <itay@mail.bg>2012-12-23 00:12:38 +0200
commit230b4ebe94400ac7af47731e5c2b965b0c5fb2da (patch)
treead0b511cdff2023e0cabe0268986707efcc7b6ff /main.cpp
downloadsingleapplication-230b4ebe94400ac7af47731e5c2b965b0c5fb2da.tar.xz
Add base files
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..101534f
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,11 @@
+#include "singleapplication.h"
+
+int main(int argc, char *argv[])
+{
+ SingleApplication app(argc, argv);
+
+ // Is another instance of the program is already running
+ if(!app.shouldContinue())return 0;
+
+ return app.exec();
+}