mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: do not send timeout data to the plasma applet
it is not matter of timeout, it is matter of the KNotification instance being around for the actions. once it is not the notification actions become non-operational. other than that notification stay indefinetly in the notification area Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
831986ac81
commit
a4724b9d3a
1 changed files with 1 additions and 3 deletions
|
@ -163,12 +163,11 @@ void KNotificationManager::send(KNotification *notification, const bool persiste
|
|||
this, SLOT(slotActionRequested(QString,QString))
|
||||
);
|
||||
}
|
||||
const int eventtimeout = (persistent ? 0 : -1);
|
||||
if (!m_notificationsiface || !m_notificationsiface->isValid()) {
|
||||
kWarning(s_knotificationarea) << "notifications interface is not valid";
|
||||
const QPixmap eventpixmap = KIconLoader::global()->loadIcon(eventicon, KIconLoader::Small);
|
||||
KPassivePopup* kpassivepopup = new KPassivePopup(notification->widget());
|
||||
kpassivepopup->setTimeout(eventtimeout);
|
||||
kpassivepopup->setTimeout(persistent ? 0 : -1);
|
||||
kpassivepopup->setView(eventtitle, eventtext, eventpixmap);
|
||||
kpassivepopup->setAutoDelete(true);
|
||||
// NOTE: KPassivePopup positions itself depending on the windows
|
||||
|
@ -197,7 +196,6 @@ void KNotificationManager::send(KNotification *notification, const bool persiste
|
|||
eventdata.insert("appIcon", eventicon);
|
||||
eventdata.insert("summary", eventtitle); // unused
|
||||
eventdata.insert("body", eventtext);
|
||||
eventdata.insert("timeout", eventtimeout); // unused
|
||||
eventdata.insert("actions", eventactions);
|
||||
eventdata.insert("configurable", true);
|
||||
// NOTE: has to be set to be configurable via plasma notifications applet
|
||||
|
|
Loading…
Add table
Reference in a new issue