Remove nasty static_cast<QWidget*>(QObject*) which was creating the crashes.
CCMAIL: 61140-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=239860
This commit is contained in:
parent
7c62ae8bce
commit
a33e94d36c
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue