[Notifications] Never manually hide() the NotificationPopup

Otherwise the positioner will get completely confused.
When a notification is closed, the popup will already be closed in response to sourceRemoved.
Also, when triggering an action, call closePopup instead of hiding the popup.

(cherry picked from commit b97fdfa293)

Differential Revision: https://phabricator.kde.org/D4632
wilder-5.14
Kai Uwe Broulik 9 years ago
parent 62b803b45d
commit 6b833f1ca2
  1. 7
      applets/notifications/package/contents/ui/NotificationPopup.qml
  2. 3
      applets/notifications/package/contents/ui/Notifications.qml

@ -85,7 +85,7 @@ PlasmaCore.Dialog {
}
closeNotification(notificationProperties.source)
notificationPopup.hide()
// the popup will be closed in response to sourceRemoved
}
onContainsMouseChanged: {
if (containsMouse) {
@ -122,16 +122,15 @@ PlasmaCore.Dialog {
onClose: {
closeNotification(notificationProperties.source)
notificationPopup.hide()
// the popup will be closed in response to sourceRemoved
}
onConfigure: {
configureNotification(notificationProperties.appRealName, notificationProperties.eventId)
notificationPopup.hide()
notificationPositioner.closePopup(notificationProperties.source);
}
onAction: {
executeAction(notificationProperties.source, actionId)
actions.clear()
notificationPopup.hide()
}
}
}

@ -89,8 +89,9 @@ Column {
//try to open the id as url
} else if (id.indexOf("jobUrl#") !== -1) {
Qt.openUrlExternally(id.slice(7));
notificationPositioner.closePopup(source);
}
notificationPositioner.closePopup(source);
}
function configureNotification(appRealName, eventId) {

Loading…
Cancel
Save