From 0d7b5e88d85b7d370199ed680af041b48ff4cbcf Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 11 Feb 2010 22:53:42 +0000 Subject: [PATCH] we should only muck with the minimum sizes of the popup applet when iconified if it is actually using an icon; otherwise we leave it up to the applet itself to do this properly as it normally would have to CCBUG:226391 svn path=/branches/KDE/4.4/kdelibs/; revision=1088931 --- popupapplet.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index 59d61e10c..bdd470907 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -358,7 +358,10 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) //emulate the same kind of behavior as Qt::Popup (close when you click somewhere //else. - q->setMinimumSize(QSize(0, 0)); + if (icon) { + q->setMinimumSize(QSize(0, 0)); + } + if (gWidget) { Corona *corona = qobject_cast(gWidget->scene()); @@ -392,7 +395,9 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) lay->addItem(icon); } - q->setMinimumSize(0,0); + if (icon) { + q->setMinimumSize(0,0); + } } }