really don't show when there is no content

This commit is contained in:
Aaron Seigo 2011-08-16 14:56:30 +02:00
parent 78cfff2f3c
commit ee57550909

View File

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