This commit is contained in:
Damien Elmes 2012-01-09 10:18:14 +09:00
commit 2bad230ca5
2 changed files with 4 additions and 4 deletions

View file

@ -14,12 +14,11 @@ The translations are stored in a bazaar repo for integration with launchpad's
translation services. If you want to use a language other than English: translation services. If you want to use a language other than English:
$ cd .. $ cd ..
$ mv libanki lib
$ mv ankiqt qt $ mv ankiqt qt
$ bzr clone lp:anki $ bzr clone lp:anki
$ cd anki $ cd anki
$ ./update-mos.sh $ ./update-mos.sh
$ cd ../ankiqt $ cd ../qt
And now you're ready to run Anki: And now you're ready to run Anki:
$ ./anki $ ./anki

View file

@ -114,9 +114,10 @@ body { margin: 1em; -webkit-user-select: none; }
def _rename(self, did): def _rename(self, did):
self.mw.checkpoint(_("Rename Deck")) self.mw.checkpoint(_("Rename Deck"))
deck = self.mw.col.decks.get(did) deck = self.mw.col.decks.get(did)
newName = getOnlyText(_("New deck name:"), default=deck['name']) oldName = deck['name']
newName = getOnlyText(_("New deck name:"), default=oldName)
newName = newName.replace("'", "").replace('"', "") newName = newName.replace("'", "").replace('"', "")
if not newName: if not newName or newName == oldName:
return return
if deck in self.mw.col.decks.allNames(): if deck in self.mw.col.decks.allNames():
return showWarning(_("That deck already exists.")) return showWarning(_("That deck already exists."))