Merge branch 'CURA-5384_confirm_upon_exit' of github.com:Ultimaker/Cura into CURA-5384_confirm_upon_exit

This commit is contained in:
Aleksei S 2018-07-13 11:48:48 +02:00
commit db669119f2
2 changed files with 9 additions and 1 deletions

View file

@ -720,6 +720,14 @@ UM.MainWindow
onYes: CuraApplication.callConfirmExitDialogCallback(true)
onNo: CuraApplication.callConfirmExitDialogCallback(false)
onRejected: CuraApplication.callConfirmExitDialogCallback(false)
onVisibilityChanged:
{
if (!visible)
{
// reset the text to default because other modules may change the message text.
text = catalog.i18nc("@label", "Are you sure you want to exit Cura?");
}
}
}
Connections