Commit 1d657aed authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Replace & with && for tab title.

If the tab title has & it will replace it by the shortcut symbol (_).

BUG: 267851
FIXED-IN: 4.6.2
parent ad9f8011
......@@ -788,8 +788,11 @@ void TabbedViewContainer::updateTitle(ViewProperties* item)
const int index = _stackWidget->indexOf( iter.next() );
QString tabText = item->title();
_tabBar->setTabText( index , tabText );
_tabBar->setTabToolTip( index , tabText );
// To avoid having & replaced with _ (shortcut indicator)
tabText.replace("&", "&&");
_tabBar->setTabText( index , tabText );
}
}
void TabbedViewContainer::updateIcon(ViewProperties* item)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment