Commit e160b626 authored by Martin Walch's avatar Martin Walch

Make the KApplication instantiation before calling KCrash::initialize()

Fix crash when calling KCrash::initialize().

This was caused by getting

"Please instantiate the QApplication object first"

as return value from QCoreApplication::applicationFilePath() when setting
the file path in KCrash.

REVIEW: 127804
parent 248266e8
......@@ -89,6 +89,7 @@ int main(int argc, char *argv[])
/* command line handling */
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
KApplication application(true);
......@@ -111,7 +112,6 @@ int main(int argc, char *argv[])
kDebug(12010) << "Running in demo mode" << global_demo_mode;
KApplication application(true);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment