use isEmpty() to figure out if an extender is empty or not; prevents popping up empty dialogs just because there are groups in the extender even though they have no items

svn path=/trunk/KDE/kdelibs/; revision=964315
This commit is contained in:
Aaron J. Seigo 2009-05-06 14:22:15 +00:00
parent ff97539a2e
commit 91a65043c1

View File

@ -519,7 +519,7 @@ void PopupAppletPrivate::internalTogglePopup()
} else {
if (q->graphicsWidget() &&
q->graphicsWidget() == static_cast<Applet*>(q)->d->extender &&
static_cast<Applet*>(q)->d->extender->attachedItems().isEmpty()) {
static_cast<Applet*>(q)->d->extender->isEmpty()) {
// we have nothing to show, so let's not.
return;
}