add deck name to add items/browser

This commit is contained in:
Damien Elmes 2009-05-09 06:03:09 +09:00
parent 3601e455a4
commit 798fa82ed3
2 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@ class AddCards(QDialog):
self.config = parent.config self.config = parent.config
self.dialog = ankiqt.forms.addcards.Ui_AddCards() self.dialog = ankiqt.forms.addcards.Ui_AddCards()
self.dialog.setupUi(self) self.dialog.setupUi(self)
self.setWindowTitle(_("Add Items - %s") % parent.deck.name())
self.setupEditor() self.setupEditor()
self.addChooser() self.addChooser()
self.addButtons() self.addButtons()

View file

@ -511,7 +511,7 @@ class EditDeck(QMainWindow):
"cur": len(self.model.cards), "cur": len(self.model.cards),
"tot": self.deck.cardCount, "tot": self.deck.cardCount,
"sel": ngettext("%d selected", "%d selected", selected) % selected "sel": ngettext("%d selected", "%d selected", selected) % selected
}) } + " - " + self.parent.deck.name())
def onEvent(self, type='field'): def onEvent(self, type='field'):
if self.deck.undoAvailable(): if self.deck.undoAvailable():