mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Merge branch 'master' of https://github.com/aaronharsh/ankiqt
This commit is contained in:
commit
2bad230ca5
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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."))
|
||||||
|
|
Loading…
Reference in a new issue