technically probably more accurate, since in the case of no dialog .... we are showing the popup!
svn path=/trunk/KDE/kdelibs/; revision=903161
This commit is contained in:
parent
f58b012cee
commit
f6ac5f6052
@ -309,12 +309,11 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
||||
l_layout->addWidget(qWidget);
|
||||
dialog->adjustSize();
|
||||
}
|
||||
|
||||
|
||||
QObject::connect(dialog, SIGNAL(dialogResized()), q, SLOT(dialogSizeChanged()));
|
||||
QObject::connect(dialog, SIGNAL(dialogVisible(bool)), q, SLOT(dialogStatusChanged(bool)));
|
||||
}
|
||||
|
||||
|
||||
if (icon && lay) {
|
||||
lay->addItem(icon);
|
||||
}
|
||||
@ -438,7 +437,7 @@ bool PopupApplet::isPassivePopup() const
|
||||
|
||||
bool PopupApplet::isPopupShowing() const
|
||||
{
|
||||
return d->dialog && d->dialog->isVisible();
|
||||
return !d->dialog || d->dialog->isVisible();
|
||||
}
|
||||
|
||||
PopupAppletPrivate::PopupAppletPrivate(PopupApplet *applet)
|
||||
|
Loading…
Reference in New Issue
Block a user