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:
parent
ff97539a2e
commit
91a65043c1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user