Index: sources/gui/qml/components/ModalDialog.qml =================================================================== diff -u -r2b56995303cc088d8c74a480cb9be88e46899ac9 -r7fb13d9e1a453a37ab4dea5536e0f19ed6e272d2 --- sources/gui/qml/components/ModalDialog.qml (.../ModalDialog.qml) (revision 2b56995303cc088d8c74a480cb9be88e46899ac9) +++ sources/gui/qml/components/ModalDialog.qml (.../ModalDialog.qml) (revision 7fb13d9e1a453a37ab4dea5536e0f19ed6e272d2) @@ -39,7 +39,7 @@ property bool showDropShadow : false property alias backgroundItem : _backgroundItem.children property alias backgroundItemZ : _backgroundItem.z - property bool highPriorityDialog : false + property bool closeOnStateChange : true width : Variables.dialogWidth height : Variables.dialogHeight @@ -90,7 +90,7 @@ // fix closing opened dialogs when opmode is changed Connections { target: vTDOpMode - function onOpModeChanged() { if ( _root.visible && ! _root.highPriorityDialog ) { _root.close() } } + function onOpModeChanged() { if ( _root.visible && _root.closeOnStateChange ) { _root.close() } } } NumberAnimation { id: _autoHideAnimation