mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
update title after undo, set fact=none after check not before
This commit is contained in:
parent
78ae7f48e6
commit
880a45eb13
1 changed files with 3 additions and 1 deletions
|
@ -392,12 +392,12 @@ class EditDeck(QMainWindow):
|
||||||
|
|
||||||
def onClose(self):
|
def onClose(self):
|
||||||
self.editor.saveFieldsNow()
|
self.editor.saveFieldsNow()
|
||||||
self.editor.setFact(None)
|
|
||||||
if not self.factValid:
|
if not self.factValid:
|
||||||
ui.utils.showInfo(_(
|
ui.utils.showInfo(_(
|
||||||
"Some fields are missing or not unique."),
|
"Some fields are missing or not unique."),
|
||||||
parent=self, help="AddItems#AddError")
|
parent=self, help="AddItems#AddError")
|
||||||
return
|
return
|
||||||
|
self.editor.setFact(None)
|
||||||
saveGeom(self, "editor")
|
saveGeom(self, "editor")
|
||||||
saveSplitter(self.dialog.splitter, "editor")
|
saveSplitter(self.dialog.splitter, "editor")
|
||||||
self.hide()
|
self.hide()
|
||||||
|
@ -562,10 +562,12 @@ where id in (%s)""" % ",".join([
|
||||||
|
|
||||||
def onUndo(self):
|
def onUndo(self):
|
||||||
self.deck.undo()
|
self.deck.undo()
|
||||||
|
self.updateFilterLabel()
|
||||||
self.updateSearch()
|
self.updateSearch()
|
||||||
|
|
||||||
def onRedo(self):
|
def onRedo(self):
|
||||||
self.deck.redo()
|
self.deck.redo()
|
||||||
|
self.updateFilterLabel()
|
||||||
self.updateSearch()
|
self.updateSearch()
|
||||||
|
|
||||||
class AddCardChooser(QDialog):
|
class AddCardChooser(QDialog):
|
||||||
|
|
Loading…
Reference in a new issue