no need to alter shortcuts anymore

This commit is contained in:
Damien Elmes 2009-02-15 00:09:48 +09:00
parent ad80548f19
commit ed86beceb7

View file

@ -1483,7 +1483,6 @@ day = :d""", d=yesterday)
self.installTranslation() self.installTranslation()
if getattr(self, 'mainWin', None): if getattr(self, 'mainWin', None):
self.mainWin.retranslateUi(self) self.mainWin.retranslateUi(self)
self.alterShortcuts()
anki.lang.setLang(self.config["interfaceLang"], local=False) anki.lang.setLang(self.config["interfaceLang"], local=False)
self.updateTitleBar() self.updateTitleBar()
@ -2095,14 +2094,8 @@ Consider backing up your media directory first."""))
def setupSystemHacks(self): def setupSystemHacks(self):
self.setupDocumentDir() self.setupDocumentDir()
self.alterShortcuts()
self.changeLayoutSpacing() self.changeLayoutSpacing()
def alterShortcuts(self):
if sys.platform.startswith("darwin"):
self.mainWin.actionAddcards.setShortcut(_("Ctrl+D"))
self.mainWin.actionClose.setShortcut("")
def setupDocumentDir(self): def setupDocumentDir(self):
if sys.platform.startswith("win32"): if sys.platform.startswith("win32"):
s = QSettings(QSettings.UserScope, "Microsoft", "Windows") s = QSettings(QSettings.UserScope, "Microsoft", "Windows")