[ui] ComputeUnsaved: set a more straightforward text for Discard button

avoid potentially ambiguous platform-dependent text
This commit is contained in:
Yann Lanthony 2018-08-09 00:11:17 +02:00
parent 298207a569
commit 52c99a803e

View file

@ -151,6 +151,10 @@ ApplicationWindow {
detailedText: "Default cache folder: " + _reconstruction.graph.cacheDir
helperText: "Save project first?"
standardButtons: Dialog.Discard | Dialog.Cancel | Dialog.Save
Component.onCompleted: {
// set up discard button text
standardButton(Dialog.Discard).text = "Continue without Saving"
}
onDiscarded: { close(); _reconstruction.execute(null) }
onAccepted: saveAsAction.trigger()