fix #707: fix discard changes

This commit is contained in:
antelle 2017-11-26 19:13:48 +01:00
parent b3cd56b9c4
commit fb12ce3a6a
1 changed files with 4 additions and 1 deletions

View File

@ -332,7 +332,10 @@ const AppView = Backbone.View.extend({
Launcher.exit();
}
};
if (Launcher && !Launcher.exitRequested) {
if (Launcher && Launcher.exitRequested) {
return;
}
if (Launcher) {
if (!this.exitAlertShown) {
if (this.model.settings.get('autoSave')) {
this.saveAndLock(result => { if (result) { exit(); } });