Fix a Qt4 porting error; button[0] can be NULL.

BUG: 154660

svn path=/trunk/KDE/kdebase/workspace/; revision=755700
remotes/origin/Plasma/5.0
Fredrik Höglund 18 years ago
parent 0608747ab4
commit d3ba43be44
  1. 2
      clients/keramik/keramik.cpp

@ -1229,7 +1229,7 @@ void KeramikClient::updateCaptionBuffer()
if ( clientHandler->showAppIcons() )
{
QStyle *style = button[ 0 ]->style();
QStyle *style = QApplication::style();
if ( active ) {
if ( ! activeIcon )
activeIcon = new QPixmap( this->icon().pixmap( style->pixelMetric( QStyle::PM_SmallIconSize ), QIcon::Normal )); // FRAME

Loading…
Cancel
Save