From kde-commits Thu Apr 07 10:20:44 2005 From: Adrian Schroeter Date: Thu, 07 Apr 2005 10:20:44 +0000 To: kde-commits Subject: kdebase/kwin Message-Id: <20050407102044.F3E47487 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111286930429386 CVS commit by adrian: fix possible kwin crash on dcop call, if no kompmgr is running M +2 -2 workspace.cpp 1.505 --- kdebase/kwin/workspace.cpp #1.504:1.505 @@ -54,5 +54,5 @@ extern int screen_number; Workspace *Workspace::_self = 0; -KProcess* kompmgr; +KProcess* kompmgr = 0; bool allowKompmgrRestart = TRUE; @@ -2360,5 +2360,5 @@ void Workspace::stopKompmgr() bool Workspace::kompmgrIsRunning() { - return kompmgr->isRunning(); + return kompmgr && kompmgr->isRunning(); }