From 37319b8503a4ebe76f4dbc3070b7bcc1da4e9d57 Mon Sep 17 00:00:00 2001 From: John Schember Date: Sat, 14 May 2011 19:49:45 -0400 Subject: [PATCH] Possible fix for bug #779556: Preferences hotkey lost in Mac version. --- src/calibre/gui2/actions/preferences.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/actions/preferences.py b/src/calibre/gui2/actions/preferences.py index b65967e994..1ebd4ea6ba 100644 --- a/src/calibre/gui2/actions/preferences.py +++ b/src/calibre/gui2/actions/preferences.py @@ -19,8 +19,9 @@ class PreferencesAction(InterfaceAction): def genesis(self): pm = QMenu() - acname = _('Change calibre behavior') if isosx else _('Preferences') - pm.addAction(QIcon(I('config.png')), acname, self.do_config) + pm.addAction(QIcon(I('config.png')), _('Preferences'), self.do_config) + if isosx: + pm.addAction(QIcon(I('config.png')), _('Change calibre behavior'), self.do_config) pm.addAction(QIcon(I('wizard.png')), _('Run welcome wizard'), self.gui.run_wizard) if not DEBUG: