From 6e884b34c6d795d5cf1f8247af30315dc7d44986 Mon Sep 17 00:00:00 2001 From: Adrian Schroeter Date: Thu, 7 Apr 2005 10:20:44 +0000 Subject: [PATCH] fix possible kwin crash on dcop call, if no kompmgr is running svn path=/trunk/kdebase/kwin/; revision=403731 --- workspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index dde3ce83de..2bb1a8059f 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -53,7 +53,7 @@ extern int screen_number; Workspace *Workspace::_self = 0; -KProcess* kompmgr; +KProcess* kompmgr = 0; bool allowKompmgrRestart = TRUE; @@ -2359,7 +2359,7 @@ void Workspace::stopKompmgr() bool Workspace::kompmgrIsRunning() { - return kompmgr->isRunning(); + return kompmgr && kompmgr->isRunning(); } void Workspace::unblockKompmgrRestart()