From d3ba43be44b8ae81db42eedfee00f674ed3e4fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Wed, 2 Jan 2008 02:51:27 +0000 Subject: [PATCH] Fix a Qt4 porting error; button[0] can be NULL. BUG: 154660 svn path=/trunk/KDE/kdebase/workspace/; revision=755700 --- clients/keramik/keramik.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/keramik/keramik.cpp b/clients/keramik/keramik.cpp index 26700b5685..3ddf6b1166 100644 --- a/clients/keramik/keramik.cpp +++ b/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