aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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();
+}