From d02ad5d6bf785173e4bb9ef8a9a5032ec0508bf3 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 27 Oct 2015 12:50:41 -0200 Subject: [PATCH] Do not use the text() of the Action to show a DockWidget The text can be translated, the text can have accelerator-special key, so the text is unrealiable. the only thing reliable is the data, wich stores a pointer to a fixed , unmutable, string. Signed-off-by: Tomaz Canabrava --- src/ui/MainWindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index be7081844..7494392e1 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -402,7 +402,7 @@ void MainWindow::_showDockWidgetAction(bool show) { QAction* action = qobject_cast(QObject::sender()); Q_ASSERT(action); - _showDockWidget(action->text(), show); + _showDockWidget(action->data().toString(), show); } #endif -- 2.22.0