diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py
index 71ea86429..6e548bdcf 100644
--- a/ankiqt/ui/cardlist.py
+++ b/ankiqt/ui/cardlist.py
@@ -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:
diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py
index 8fe833802..f65cd9f69 100644
--- a/ankiqt/ui/main.py
+++ b/ankiqt/ui/main.py
@@ -184,10 +184,9 @@ Please do not file a bug report with Anki.
""")
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()