You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
536 B
17 lines
536 B
diff --git a/src/kcrash.cpp b/src/kcrash.cpp
|
|
--- a/src/kcrash.cpp
|
|
+++ b/src/kcrash.cpp
|
|
@@ -135,7 +135,10 @@
|
|
qCDebug(LOG_KCRASH) << "KCrash disabled through environment.";
|
|
}
|
|
|
|
- KCrash::setApplicationFilePath(QCoreApplication::applicationFilePath());
|
|
+ if (QCoreApplication::instance())
|
|
+ KCrash::setApplicationFilePath(QCoreApplication::applicationFilePath());
|
|
+ else
|
|
+ qWarning() << "This process needs a QCoreApplication instance in order to use KCrash";
|
|
|
|
s_coreConfig(); // Initialize.
|
|
}
|
|
|