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

@ -1128,13 +1128,15 @@ void IceWMClient::mouseDoubleClickEvent( QMouseEvent * e )
void IceWMClient::iconChange()
{
if (validPixmaps(menuButtonPix) && showMenuButtonIcon)
{
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