From 403f60bd1c0b32e7dfbdfda4af0cab353b333b58 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 May 2017 20:18:34 +0530 Subject: [PATCH] ... --- src/calibre/gui2/main_window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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())