Skip to content
Snippets Groups Projects
Commit d02ad5d6 authored by Tomaz Canabrava's avatar Tomaz Canabrava
Browse files

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: default avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 86898dd9
No related branches found
No related tags found
No related merge requests found
......@@ -402,7 +402,7 @@ void MainWindow::_showDockWidgetAction(bool show)
{
QAction* action = qobject_cast<QAction*>(QObject::sender());
Q_ASSERT(action);
_showDockWidget(action->text(), show);
_showDockWidget(action->data().toString(), show);
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment