diff options
author | Itay Grudev <itay@mail.bg> | 2012-12-23 00:12:38 +0200 |
---|---|---|
committer | Itay Grudev <itay@mail.bg> | 2012-12-23 00:12:38 +0200 |
commit | 230b4ebe94400ac7af47731e5c2b965b0c5fb2da (patch) | |
tree | ad0b511cdff2023e0cabe0268986707efcc7b6ff /main.cpp | |
download | singleapplication-230b4ebe94400ac7af47731e5c2b965b0c5fb2da.tar.xz |
Add base files
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
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(); +} |