Don't crash when changing decorations with RMB.
svn path=/trunk/kdebase/kwin/; revision=83040
This commit is contained in:
parent
09595efd93
commit
460c6e1d36
2 changed files with 5 additions and 2 deletions
|
@ -102,7 +102,9 @@ void PluginMenu::slotActivated(int id)
|
|||
config->setGroup("Style");
|
||||
config->writeEntry("PluginLib", newPlugin);
|
||||
config->sync();
|
||||
mgr->loadPlugin(newPlugin);
|
||||
// We can't do this directly because we might destruct a client
|
||||
// underneath our own feet while doing so.
|
||||
QTimer::singleShot(0, mgr, SLOT(updatePlugin()));
|
||||
}
|
||||
|
||||
PluginMgr::PluginMgr()
|
||||
|
|
|
@ -24,8 +24,9 @@ public:
|
|||
~PluginMgr();
|
||||
Client *allocateClient(Workspace *ws, WId w, bool tool);
|
||||
void loadPlugin(QString name);
|
||||
bool updatePlugin();
|
||||
QString currentPlugin() { return pluginStr; }
|
||||
public slots:
|
||||
bool updatePlugin();
|
||||
signals:
|
||||
void resetAllClients();
|
||||
protected:
|
||||
|
|
Loading…
Reference in a new issue