mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
don't exit while editing inline
This commit is contained in:
parent
aa5254ba60
commit
7b1fdb8833
1 changed files with 3 additions and 0 deletions
|
|
@ -773,6 +773,9 @@ Error was:\n%s\n...\n%s""") % (fmt1, fmt2))
|
|||
|
||||
def closeEvent(self, event):
|
||||
"User hit the X button, etc."
|
||||
if self.state == "editCurrentFact":
|
||||
event.ignore()
|
||||
return self.moveToState("saveEdit")
|
||||
if not self.saveAndClose(hideWelcome=True):
|
||||
event.ignore()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue