Reset confirm exit dialog text upon close

CURA-5384
This commit is contained in:
Lipu Fei 2018-07-13 11:10:38 +02:00
parent 49bd249819
commit 6d34d77b6b

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