# HG changeset patch # User Torsten # Date 1382555153 -7200 # Node ID 0640892429a8fccd88d65730e1eebd8062c3caa5 # Parent 0cfdb818ccb875e27baac863c40e6495baf70c87 remove XREF from tab names in the documentation browser * webinfo.cc(load_node): remove XREF in the string used for the tab name diff -r 0cfdb818ccb8 -r 0640892429a8 libgui/src/qtinfo/webinfo.cc --- a/libgui/src/qtinfo/webinfo.cc Wed Oct 23 21:03:00 2013 +0200 +++ b/libgui/src/qtinfo/webinfo.cc Wed Oct 23 21:05:53 2013 +0200 @@ -106,10 +106,14 @@ void webinfo::load_node (const QString& node_name) { + // no XREF in the tabs + QString tab_text = node_name; + tab_text.replace("XREF",""); + //Check if node has been already opened. for (int i = 0;i < _tab_bar->count (); i++) { - if (node_name == _tab_bar->tabText (i)) + if (tab_text == _tab_bar->tabText (i)) { _tab_bar->setCurrentIndex (i); return; @@ -118,7 +122,7 @@ QString text = _parser.search_node (node_name); int i = _parser.is_ref (node_name); - _text_browser = addNewTab (node_name); + _text_browser = addNewTab (tab_text); _text_browser->setHtml (_parser.node_text_to_html (text, i - 1, "anchor")); if (i != -1)