Don't crash when changing decorations with RMB.

svn path=/trunk/kdebase/kwin/; revision=83040
This commit is contained in:
Waldo Bastian 2001-02-15 23:19:07 +00:00
parent 09595efd93
commit 460c6e1d36
2 changed files with 5 additions and 2 deletions

View file

@ -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()

View file

@ -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: