Группа :: Графические оболочки/KDE
Пакет: kdelibs
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: kdelibs-3.1.94-fix-scriptmanager-segfault.patch
diff -Naur kdelibs.orig/interfaces/kscript/scriptmanager.cpp kdelibs/interfaces/kscript/scriptmanager.cpp
--- kdelibs/interfaces/kscript/scriptmanager.cpp~ 2004-01-13 19:08:01 +0300
+++ kdelibs/interfaces/kscript/scriptmanager.cpp 2004-01-13 19:08:45 +0300
@@ -84,10 +84,10 @@
void KScriptManager::runScript( const QString &scriptName, QObject *context, const QVariant &arg)
{
ScriptInfo *newScript = m_scripts[scriptName];
- QString scriptType = "([X-KDE-Script-Runner] == '" + newScript->scriptType + "')";
- kdDebug()<<"running script, type = '"<<scriptType<<"'"<<endl;
if (newScript)
{
+ QString scriptType = "([X-KDE-Script-Runner] == '" + newScript->scriptType + "')";
+ kdDebug()<<"running script, type = '"<<scriptType<<"'"<<endl;
// See if the script is already cached...
if ( !m_scriptCache[scriptName] )
{