diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 0cca376a2d..28e9e490e4 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -274,6 +274,7 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec // Delete old plugin widget if it exists delete pluginObject; + pluginObject = 0; // Use klibloader for library manipulation KLibLoader* loader = KLibLoader::self(); @@ -302,7 +303,6 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec } } - pluginObject = 0; noPluginSettings->setText(i18n("There are no special options available for the %1 window decoration.").arg(currentDecoName)); noPluginSettings->show(); }