diff --git a/src/calibre/gui2/main_window.py b/src/calibre/gui2/main_window.py index fd71725f44..d11c4b2672 100644 --- a/src/calibre/gui2/main_window.py +++ b/src/calibre/gui2/main_window.py @@ -165,7 +165,10 @@ def clone_menu(menu): return ans sc = ac.shortcut() sc = '' if sc.isEmpty() else sc.toString(sc.NativeText) - ans = QAction(ac.icon(), ac.text() + '\t' + sc, parent) + text = ac.text() + if '\t' not in text: + text += '\t' + sc + ans = QAction(ac.icon(), text, parent) ans.triggered.connect(ac.trigger) ans.setEnabled(ac.isEnabled()) ans.setStatusTip(ac.statusTip())