From 0692e2403600090cf92efed375136c3d256f71ac Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 16 Jun 2015 06:52:06 -0700 Subject: Separate initializing Qt from initializing the UI Signed-off-by: Dirk Hohndel --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.cpp') 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 +#include #include 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(); -- cgit v1.2.3-70-g09d2