Commit fa4f0b85 authored by Andreas Pakulat's avatar Andreas Pakulat

Use qApp instead of kApp so loading the KPart doesn't crash in Qt apps. This

happened in unit-tests for KDevelop which use the QTEST_KDEMAIN macro but also
create the KDevPlatform shell (which loads this plugin)

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1077812
parent 1e455eaf
......@@ -1227,7 +1227,7 @@ void SessionController::zmodemUpload()
bool SessionController::isKonsolePart() const
{
// Check to see if we are being called from Konsole or a KPart
if (QString(kapp->metaObject()->className()) == "Konsole::Application")
if (QString(qApp->metaObject()->className()) == "Konsole::Application")
return false;
else
return 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