From f763a3d06bf1a0eaa8db74726fa9c0045b3804c4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 20 Feb 2009 17:31:33 +0900 Subject: [PATCH] only unset cursor if set --- ankiqt/ui/activetags.py | 1 + ankiqt/ui/main.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/activetags.py b/ankiqt/ui/activetags.py index 57e7d45d2..0e158ac70 100644 --- a/ankiqt/ui/activetags.py +++ b/ankiqt/ui/activetags.py @@ -50,6 +50,7 @@ class ActiveTagsChooser(QDialog): self.parent.deck.suspended = canonifyTags(joinTags(suspended + ["Suspended"])) self.parent.deck.setModified() self.parent.deck.updateProgress(_("Processing...")) + self.parent.deck.updateAllPriorities(partial=True) self.parent.reset() saveGeom(self, "activeTags") self.parent.deck.finishProgress() diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index a1cbbaf4c..575c939ae 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2059,8 +2059,9 @@ day = :d""", d=yesterday) self.busyCursor = True def unsetBusy(self): - self.app.restoreOverrideCursor() - self.busyCursor = None + if self.busyCursor: + self.app.restoreOverrideCursor() + self.busyCursor = None # Advanced features ##########################################################################