fix possible kwin crash on dcop call, if no kompmgr is running

svn path=/trunk/kdebase/kwin/; revision=403731
icc-effect-5.14.5
Adrian Schroeter 2005-04-07 10:20:44 +00:00
parent 65c8167754
commit 6e884b34c6
1 changed files with 2 additions and 2 deletions

View File

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