From 412d37fc13a3810d6e660527d738f153dc9e34ac Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 31 Jul 2017 15:48:34 +1000 Subject: [PATCH] another workaround for the KDE accelerator issue --- aqt/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aqt/utils.py b/aqt/utils.py index 2957a86cb..191832ddf 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -143,7 +143,9 @@ class ButtonedDialog(QMessageBox): if but == "Help": # FIXME stop dialog closing? openHelp(self.help) - return self.clickedButton().text() + txt = self.clickedButton().text() + # work around KDE 'helpfully' adding accelerators to button text of Qt apps + return txt.replace("&", "") def setDefault(self, idx): self.setDefaultButton(self.buttons[idx])