Remove nasty static_cast<QWidget*>(QObject*) which was creating the crashes.

CCMAIL: 61140-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=239860
remotes/origin/Plasma/5.0
Karol Szwed 23 years ago
parent 7c62ae8bce
commit a33e94d36c
  1. 2
      kcmkwin/kwindecoration/kwindecoration.cpp
  2. 2
      kcmkwin/kwindecoration/kwindecoration.h

@ -291,7 +291,7 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec
if (alloc_ptr != NULL)
{
allocatePlugin = (QObject* (*)(KConfig* conf, QWidget* parent))alloc_ptr;
pluginObject = static_cast<QWidget*>(allocatePlugin( conf, pluginConfigWidget ));
pluginObject = (QObject*)(allocatePlugin( conf, pluginConfigWidget ));
// connect required signals and slots together...
connect( pluginObject, SIGNAL(changed()), this, SLOT(slotSelectionChanged()) );

@ -91,7 +91,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface
ButtonSource* buttonSource;
// Page 3
QWidget* pluginObject;
QObject* pluginObject;
QLabel* noPluginSettings;
QString currentLibraryName;
QString oldLibraryName;

Loading…
Cancel
Save