mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 15:47:12 -05:00
make sure to update fields after find+replace
This commit is contained in:
parent
e620c8ebed
commit
1bfa5f7737
2 changed files with 3 additions and 6 deletions
|
|
@ -577,9 +577,6 @@ class EditDeck(QMainWindow):
|
|||
if not self.currentCard:
|
||||
self.editor.setFact(None, True)
|
||||
return
|
||||
self.deck.s.flush()
|
||||
self.deck.s.refresh(self.currentCard)
|
||||
self.deck.s.refresh(self.currentCard.fact)
|
||||
fact = self.currentCard.fact
|
||||
self.editor.setFact(fact, True)
|
||||
self.showCardInfo(self.currentCard)
|
||||
|
|
@ -807,6 +804,7 @@ where id in %s""" % ids2str(sf))
|
|||
self.deck.setUndoEnd(n)
|
||||
self.deck.finishProgress()
|
||||
self.parent.setProgressParent(None)
|
||||
self.parent.reset()
|
||||
self.updateSearch()
|
||||
self.updateAfterCardChange()
|
||||
if changed is not None:
|
||||
|
|
|
|||
|
|
@ -184,10 +184,9 @@ Please do not file a bug report with Anki.<br><br>""")
|
|||
self.views = self.viewsBackup
|
||||
self.viewsBackup = None
|
||||
|
||||
def reset(self, count=True, refresh=False):
|
||||
def reset(self, count=True):
|
||||
if self.deck:
|
||||
if refresh:
|
||||
self.deck.refresh()
|
||||
self.deck.refresh()
|
||||
if count:
|
||||
self.deck.updateAllPriorities()
|
||||
self.deck.rebuildCounts()
|
||||
|
|
|
|||
Loading…
Reference in a new issue