From 00714cc198a3c95a3bd1aeda5ee468398afe7210 Mon Sep 17 00:00:00 2001 From: David Palacio Date: Sun, 17 Apr 2011 16:55:46 -0500 Subject: [PATCH] Ensure icon is added to layout. BUG: 268104 REVIEW: 101148 --- popupapplet.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index e820f1f4c..759ea7fc9 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -366,6 +366,10 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) } //Applet on popup } else { + if (icon && lay) { + lay->addItem(icon); + } + //kDebug() << "about to switch to a popup"; //there was already a dialog? don't make the switch again @@ -426,10 +430,6 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) QObject::connect(dialog, SIGNAL(dialogResized()), q, SLOT(dialogSizeChanged())); QObject::connect(dialog, SIGNAL(dialogVisible(bool)), q, SLOT(dialogStatusChanged(bool))); } - - if (icon && lay) { - lay->addItem(icon); - } } }