diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2015-04-12 13:54:56 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2015-04-12 13:54:56 +0200 |
commit | dc554ad46b8f1c2375e996d498d6b81b274c184c (patch) | |
tree | 8e760824bfcde23eca0ad058aecf6ba25cad81b7 /qtpass.pro | |
parent | 553d052ec77b37c3cda189d7d6c4f8d7c718ff65 (diff) |
Add nosingleapp config.
If set, allows multiple instances, thus avoiding the issues
with the SingleApplication (which has issues with
multiple users, multiple X servers, race conditions, ...).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'qtpass.pro')
-rw-r--r-- | qtpass.pro | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -4,7 +4,7 @@ # #------------------------------------------------- -QT += core gui network +QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets @@ -20,18 +20,25 @@ SOURCES += main.cpp\ mainwindow.cpp \ dialog.cpp \ storemodel.cpp \ - singleapplication.cpp \ util.cpp HEADERS += mainwindow.h \ dialog.h \ storemodel.h \ - singleapplication.h \ util.h FORMS += mainwindow.ui \ dialog.ui +nosingleapp { +QMAKE_CXXFLAGS += -DSINGLE_APP=0 +} else { +SOURCES += singleapplication.cpp +HEADERS += singleapplication.h +QT += network +QMAKE_CXXFLAGS += -DSINGLE_APP=1 +} + TRANSLATIONS += localization/localization_nl_NL.ts \ localization/localization_de_DE.ts \ localization/localization_es_ES.ts \ |