From 85f1ae0adb2e58d2dc0bab5cd02f16454cbd9a2c Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Wed, 29 Feb 2012 16:54:52 +0100 Subject: [PATCH] removed unneeded check. --- clients/oxygen/oxygenclient.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index cd94eb48bf..dfe713ada4 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1435,19 +1435,16 @@ namespace Oxygen paint( painter ); // update buttons - if( compositingActive() ) + QList buttons( widget()->findChildren() ); + foreach( Button* button, buttons ) { - QList buttons( widget()->findChildren() ); - foreach( Button* button, buttons ) + if( button->isVisible() && event->rect().intersects( button->geometry() ) ) { - if( button->isVisible() && event->rect().intersects( button->geometry() ) ) - { - painter.save(); - painter.setViewport( button->geometry() ); - painter.setWindow( button->rect() ); - button->paint( painter ); - painter.restore(); - } + painter.save(); + painter.setViewport( button->geometry() ); + painter.setWindow( button->rect() ); + button->paint( painter ); + painter.restore(); } }