@@ -36,7 +36,7 @@ Item {
3636 property var hints
3737 property var notification
3838 property color color
39− property bool fullscreen
39+ property bool fullscreen: false
4040 property int maxHeight
4141 property int margins
4242 property Gradient greenGradient : Gradient {
@@ -48,7 +48,6 @@ Item {
4848 GradientStop { position: 1.0; color: "#4d4745" }
4949 }
5050
51− fullscreen: false
5251 objectName: "background"
5352 implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : contentColumn.height + contentColumn.spacing * 2) : 0
5453
@@ -80,7 +79,7 @@ Item {
8079 Audio {
8180 id: sound
8281 objectName: "sound"
83− source: hints["suppress-sound"] != "" ? hints["sound-file"] : undefined
82+ source: hints["suppress-sound"] != "true" && hints["sound-file"] != undefined ? hints["sound-file"] : ""
8483 }
8584
8685 onOpacityChanged: {
@@ -159,9 +158,17 @@ Item {
159158 UnityMenuModel {
160159 id: unityMenuModel
161160
161+ property string lastNameOwner: ""
162+
162163 busName: paths.busName
163164 actions: paths.actions
164165 menuObjectPath: paths.menuObjectPath
166+ onNameOwnerChanged: {
167+ if (lastNameOwner != "" && nameOwner == "" && notification.notification != undefined) {
168+ notification.notification.close()
169+ }
170+ lastNameOwner = nameOwner
171+ }
165172 }
166173
167174 Behavior on implicitHeight {
@@ -272,14 +279,18 @@ Item {
272279 }
273280
274281 Column {
282+ id: dialogColumn
275283 objectName: "dialogListView"
276284 spacing: units.gu(2)
277285
278286 visible: count > 0
279287
280− anchors.left: parent.left; anchors.right: parent.right
281− anchors.top: fullscreen ? parent.top : undefined
282− anchors.bottom: fullscreen ? parent.bottom : undefined
288+ anchors {
289+ left: parent.left
290+ right: parent.right
291+ top: fullscreen ? parent.top : undefined
292+ bottom: fullscreen ? parent.bottom : undefined
293+ }
283294
284295 Repeater {
285296 model: unityMenuModel
@@ -287,7 +298,10 @@ Item {
287298 NotificationMenuItemFactory {
288299 id: menuItemFactory
289300
290− anchors.left: parent.left; anchors.right: parent.right
301+ anchors {
302+ left: dialogColumn.left
303+ right: dialogColumn.right
304+ }
291305
292306 menuModel: unityMenuModel
293307 menuData: model