avoid useless action if the user tries to stop kompmgr while it's not running

svn path=/trunk/kdebase/kwin/; revision=379571
This commit is contained in:
Thomas Lübking 2005-01-17 23:16:28 +00:00
parent a88891cf34
commit c6a2534495

View file

@ -2340,7 +2340,7 @@ void Workspace::startKompmgr()
void Workspace::stopKompmgr() void Workspace::stopKompmgr()
{ {
if(!kompmgr) if (!kompmgr || !kompmgr->isRunning())
return; return;
kompmgr->disconnect(this, SLOT(restartKompmgr())); kompmgr->disconnect(this, SLOT(restartKompmgr()));
options->useTranslucency = FALSE; options->useTranslucency = FALSE;