fix possible kwin crash on dcop call, if no kompmgr is running
svn path=/trunk/kdebase/kwin/; revision=403731
This commit is contained in:
parent
65c8167754
commit
6e884b34c6
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue