toggle on activation

This commit is contained in:
Aaron Seigo 2011-02-04 16:18:03 -08:00
parent bb551f7c00
commit b4b0fc207a

View File

@ -440,8 +440,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
void PopupAppletPrivate::appletActivated() void PopupAppletPrivate::appletActivated()
{ {
q->setStatus(Plasma::NeedsAttentionStatus); internalTogglePopup();
q->showPopup();
} }
QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const
@ -806,10 +805,7 @@ void PopupAppletPrivate::dialogSizeChanged()
void PopupAppletPrivate::dialogStatusChanged(bool status) void PopupAppletPrivate::dialogStatusChanged(bool status)
{ {
if (!status) { q->setStatus(status ? NeedsAttentionStatus : PassiveStatus);
q->setStatus(PassiveStatus);
}
q->popupEvent(status); q->popupEvent(status);
} }