diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-16 06:52:06 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-16 14:05:09 -0700 |
commit | 0692e2403600090cf92efed375136c3d256f71ac (patch) | |
tree | db1763d065ce355ef4f46d5d9554a7883ddadacc /main.cpp | |
parent | 6a0e1cd9f6da893a7da4fa82de6ef47bb645f617 (diff) | |
download | subsurface-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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |