parent
a6358e263e
commit
d01964b193
@ -0,0 +1,16 @@
|
||||
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.
|
||||
}
|
||||
|
Loading…
Reference in new issue