From 5a5259971a8912e5f7c310eb5ed552e7a27a1425 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 18 Apr 2011 08:47:00 +0900 Subject: [PATCH] after an undo, disable if empty --- aqt/browser.py | 4 ++-- aqt/main.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aqt/browser.py b/aqt/browser.py index 21c3bb420..8146a52c2 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -405,8 +405,8 @@ class Browser(QMainWindow): ('question', _("Question")), ('answer', _("Answer")), ('template', _("Card")), - ('cardGroup', _("Card Group")), - ('factGroup', _("Fact Group")), + ('cardGroup', _("C.Group")), + ('factGroup', _("I.Group")), ('factFld', _("Sort Field")), ('factCrt', _("Created")), ('factMod', _("Edited")), diff --git a/aqt/main.py b/aqt/main.py index 6a0487675..287a1d9c3 100755 --- a/aqt/main.py +++ b/aqt/main.py @@ -660,6 +660,7 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors") def onUndo(self): self.deck.undo() self.reset() + self.maybeEnableUndo() def maybeEnableUndo(self): if self.deck and self.deck.undoName():