diff options
author | jjl | 2010-10-14 17:57:55 +0200 |
---|---|---|
committer | jjl | 2010-10-14 17:57:55 +0200 |
commit | a498546d6200bdce6027110122d518b15747b3c1 (patch) | |
tree | 33a283bd20661237e605c624fb7aa465997e4d79 /src | |
parent | [PVSMGR] dummies removed (diff) | |
download | pvs-a498546d6200bdce6027110122d518b15747b3c1.tar.gz pvs-a498546d6200bdce6027110122d518b15747b3c1.tar.xz pvs-a498546d6200bdce6027110122d518b15747b3c1.zip |
[PVSGUI] No X required for --help and --version
Diffstat (limited to 'src')
-rw-r--r-- | src/pvsgui.cpp | 37 | ||||
-rw-r--r-- | src/version.h | 4 |
2 files changed, 21 insertions, 20 deletions
diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp index eb1383b..1520c81 100644 --- a/src/pvsgui.cpp +++ b/src/pvsgui.cpp @@ -450,24 +450,6 @@ void printVersion() int main(int argc, char *argv[]) { - QtSingleApplication app(argc, argv); - app.setQuitOnLastWindowClosed(false); - app.setOrganizationName("openslx"); - app.setOrganizationDomain("openslx.org"); - app.setApplicationName("pvsgui"); - - // only one instance should be allowed - if (app.sendMessage("")) - { - qDebug("[PVSGUI] ERROR: Already running. Exiting"); - return 0; - } - - // use system locale as language to translate gui - QTranslator translator; - translator.load(":pvsgui"); - app.installTranslator(&translator); - bool visible = false; int position = -1; @@ -506,6 +488,25 @@ int main(int argc, char *argv[]) opt = getopt_long( argc, argv, optString, longOpts, &longIndex ); } + + QtSingleApplication app(argc, argv); + app.setQuitOnLastWindowClosed(false); + app.setOrganizationName("openslx"); + app.setOrganizationDomain("openslx.org"); + app.setApplicationName("pvsgui"); + + // only one instance should be allowed + if (app.sendMessage("")) + { + qDebug("[PVSGUI] ERROR: Already running. Exiting"); + return 0; + } + + // use system locale as language to translate gui + QTranslator translator; + translator.load(":pvsgui"); + app.installTranslator(&translator); + PVSGUI pvsgui; pvsgui.setPosition(position); pvsgui.setVisible(visible); diff --git a/src/version.h b/src/version.h index de5c6aa..a08c819 100644 --- a/src/version.h +++ b/src/version.h @@ -1,2 +1,2 @@ -#define VERSION_STRING "2.0.5" -#define VERSION_NUMBER 205 +#define VERSION_STRING "2.8.0" +#define VERSION_NUMBER 280 |