summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-16 06:52:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-16 14:05:09 -0700
commit0692e2403600090cf92efed375136c3d256f71ac (patch)
treedb1763d065ce355ef4f46d5d9554a7883ddadacc /main.cpp
parent6a0e1cd9f6da893a7da4fa82de6ef47bb645f617 (diff)
downloadsubsurface-0692e2403600090cf92efed375136c3d256f71ac.tar.gz
Separate initializing Qt from initializing the UI
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index d46e72984..b05b8022a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -14,6 +14,7 @@
#include "qthelper.h"
#include <QStringList>
+#include <QApplication>
#include <git2.h>
QTranslator *qtTranslator, *ssrfTranslator;
@@ -23,7 +24,7 @@ int main(int argc, char **argv)
int i;
bool no_filenames = true;
- init_qt(&argc, &argv);
+ QApplication *application = new QApplication(argc, argv);
QStringList files;
QStringList importedFiles;
QStringList arguments = QCoreApplication::arguments();