Fixed a nasty null pointer reference during window icon change.

svn path=/trunk/kdebase/kwin/; revision=98374
This commit is contained in:
Karol Szwed 2001-05-23 08:21:29 +00:00
parent b975b5622b
commit cba4ba635d

View file

@ -1129,11 +1129,13 @@ void IceWMClient::iconChange()
{
if (validPixmaps(menuButtonPix) && showMenuButtonIcon)
{
renderMenuIcons();
button[BtnSysMenu]->usePixmap( &menuButtonWithIconPix );
if (button[BtnSysMenu]->isVisible())
button[BtnSysMenu]->repaint(false);
if (button[BtnSysMenu])
{
renderMenuIcons();
button[BtnSysMenu]->usePixmap( &menuButtonWithIconPix );
if (button[BtnSysMenu]->isVisible())
button[BtnSysMenu]->repaint(false);
}
}
}
@ -1310,3 +1312,5 @@ extern "C"
#include "icewm.moc"
// vim: ts=4