Index: sources/gui/qml/dialogs/NotificationDialog.qml =================================================================== diff -u -r71918fbc2b8b5c01cb0a348ffd3b83adbca79c9b -rb45c898bb2fef51abb9460a1306f07eaa8dcbab0 --- sources/gui/qml/dialogs/NotificationDialog.qml (.../NotificationDialog.qml) (revision 71918fbc2b8b5c01cb0a348ffd3b83adbca79c9b) +++ sources/gui/qml/dialogs/NotificationDialog.qml (.../NotificationDialog.qml) (revision b45c898bb2fef51abb9460a1306f07eaa8dcbab0) @@ -30,7 +30,6 @@ property alias titleText : _title.text property alias titlePixelSize : _title.font.pixelSize - property string description : "" property alias instructionModel : _listView.model property alias titleBarForeground : _title.color property alias titleBarBackground : _titleBar.color @@ -57,7 +56,7 @@ // the isSilenced is helping not to show this dialog maximized and // then if the silence is set minimize it immediately // this behaviour does not look nice on the screen and it bounces - visible : description && ! isSilenced + visible : ! isSilenced radius : Variables.alarmDialogRadius signal muteClicked() @@ -232,10 +231,10 @@ MouseArea { anchors.fill: parent onClicked: { -// if (_listView.currentIndex !== index) { + if (_listView.currentIndex !== index) { _listView.currentIndex = index _root.figureImageSource = model.image -// } + } } } } @@ -402,10 +401,9 @@ Connections { target: vAlarmStatus function onDidAlarmRaise ( ) { - // on new alarm reset to selection and image to step 1 + // image is out of sync when a new alarm is appears so on new alarm go to step 1 image if ( _root.instructionModel.rowCount() > 0) { - _listView.currentIndex = 0 - figureImageSource = _root.instructionModel.get(_listView.currentIndex).image + figureImageSource = _root.instructionModel.get(0).image } } }