aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2015-10-28 23:46:52 +0100
committerAlbert Astals Cid <[email protected]>2015-10-28 23:46:52 +0100
commit79445cc081ea7fcf3b20e6f72d73dffc0e050f53 (patch)
treece4b66ad156269816a671ed4eb5ee360f4397f14
parentdb09592020ef9404e0944cdc470f5ca6b59daf98 (diff)
Fix QCoreApplication::arguments: Please instantiate the QApplication object first
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b4c5d82..b74d0b9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -53,6 +53,8 @@ int main(int argc, char* argv[])
{
KLocalizedString::setApplicationDomain("kturtle");
+ QApplication app(argc, argv);
+
/* for migration*/
QStringList configFiles;
configFiles << QLatin1String("kturtlerc");
@@ -71,7 +73,6 @@ int main(int argc, char* argv[])
aboutData.addAuthor(ki18n("Niels Slot").toString(), ki18n("Core developer").toString(), "[email protected]");
aboutData.addAuthor(ki18n("Mauricio Piacentini").toString(), ki18n("Core developer").toString(), "[email protected]");
- QApplication app(argc, argv);
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);