Fixed null pointer segfault
svn path=/trunk/kdebase/kwin/; revision=158475
This commit is contained in:
parent
0e524287ab
commit
f1638b1238
1 changed files with 2 additions and 1 deletions
|
@ -748,7 +748,8 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
|
||||||
// if client has initial state set to Iconic and is transient with a parent
|
// if client has initial state set to Iconic and is transient with a parent
|
||||||
// window that is not Iconic, set init_state to Normal
|
// window that is not Iconic, set init_state to Normal
|
||||||
if ((init_state == IconicState) && isTransient() && transientFor() != 0) {
|
if ((init_state == IconicState) && isTransient() && transientFor() != 0) {
|
||||||
if(!workspace()->findClient(transientFor())->isIconified()) {
|
Client* client = workspace()->findClient(transientFor());
|
||||||
|
if(client == 0 || !client->isIconified()) {
|
||||||
init_state = NormalState;
|
init_state = NormalState;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue