Ensure icon is added to layout.

BUG: 268104
REVIEW: 101148
This commit is contained in:
David Palacio 2011-04-17 16:55:46 -05:00
parent 73e5d59876
commit 00714cc198

View File

@ -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);
}
}
}