Merge pull request #329 from aidanholm/fix-default-discard

Don't discard new card contents by default
This commit is contained in:
Damien Elmes 2019-09-02 10:24:29 +10:00 committed by GitHub
commit 396d14e58f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,7 +220,7 @@ question on all cards."""), help="AddItems")
def ifCanClose(self, onOk): def ifCanClose(self, onOk):
def afterSave(): def afterSave():
ok = (self.editor.fieldsAreBlank() or ok = (self.editor.fieldsAreBlank() or
askUser(_("Close and lose current input?"))) askUser(_("Close and lose current input?"), defaultno=True))
if ok: if ok:
onOk() onOk()