From c6a2534495c27acdf896254373a52cb9f931b1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 17 Jan 2005 23:16:28 +0000 Subject: [PATCH] avoid useless action if the user tries to stop kompmgr while it's not running svn path=/trunk/kdebase/kwin/; revision=379571 --- workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 73dfd84201..6f390ef977 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -2340,7 +2340,7 @@ void Workspace::startKompmgr() void Workspace::stopKompmgr() { - if(!kompmgr) + if (!kompmgr || !kompmgr->isRunning()) return; kompmgr->disconnect(this, SLOT(restartKompmgr())); options->useTranslucency = FALSE;