show, not toggle the popup when activate() is emitted

svn path=/trunk/KDE/kdelibs/; revision=1039702
This commit is contained in:
Marco Martin 2009-10-24 11:58:52 +00:00
parent 65e005592c
commit 10a5e3e90c

View File

@ -58,7 +58,7 @@ PopupApplet::PopupApplet(QObject *parent, const QVariantList &args)
int iconSize = IconSize(KIconLoader::Desktop);
resize(iconSize, iconSize);
disconnect(this, SIGNAL(activate()), (Applet*)this, SLOT(setFocus()));
connect(this, SIGNAL(activate()), this, SLOT(internalTogglePopup()));
connect(this, SIGNAL(activate()), this, SLOT(showPopup()));
setAcceptDrops(true);
}
@ -69,7 +69,7 @@ PopupApplet::PopupApplet(const QString &packagePath, uint appletId, const QVaria
int iconSize = IconSize(KIconLoader::Desktop);
resize(iconSize, iconSize);
disconnect(this, SIGNAL(activate()), (Applet*)this, SLOT(setFocus()));
connect(this, SIGNAL(activate()), this, SLOT(internalTogglePopup()));
connect(this, SIGNAL(activate()), this, SLOT(showPopup()));
setAcceptDrops(true);
}