[Konsole-devel] [Bug 121782] Ampersand in title sets Accel
Kurt V.Hindenburg
kurt.hindenburg at kdemail.net
Fri May 5 00:51:58 UTC 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=121782
kurt.hindenburg kdemail net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From kurt.hindenburg kdemail net 2006-05-05 02:51 -------
SVN commit 537524 by hindenburg:
Fix issue when there are ampersands in tab title.
BUG: 121782
M +9 -3 konsole.cpp
--- branches/KDE/3.5/kdebase/konsole/konsole/konsole.cpp #537523:537524
@ -1364,6 +1364,7 @
else
title = sessions.at(i)->Title();
+ title=title.replace('&',"&&");
switch(mode) {
case ShowIconAndText:
tabwidget->changeTab(page, icon, title);
@ -2198,7 +2199,7 @
ra->setIcon(icon);
if (m_tabViewMode == ShowIconOnly) tabwidget->changeTab( se->widget(), QString::null );
else if (b_matchTabWinTitle)
- tabwidget->changeTab( se->widget(), se->fullTitle() );
+ tabwidget->changeTab( se->widget(), se->fullTitle().replace('&',"&&"));
}
void Konsole::initSessionFont(QFont font) {
@ -3127,7 +3128,9 @
tabwidget->blockSignals(true);
tabwidget->removePage(se->widget());
tabwidget->blockSignals(false);
- createSessionTab(se->widget(), iconSetForSession(se), se->Title(), position-1);
+ QString title = se->Title();
+ createSessionTab(se->widget(), iconSetForSession(se),
+ title.replace('&', "&&"), position-1);
tabwidget->showPage(se->widget());
tabwidget->setTabColor(se->widget(),oldcolor);
@ -3158,7 +3161,9 @
tabwidget->blockSignals(true);
tabwidget->removePage(se->widget());
tabwidget->blockSignals(false);
- createSessionTab(se->widget(), iconSetForSession(se), se->Title(), position+1);
+ QString title = se->Title();
+ createSessionTab(se->widget(), iconSetForSession(se),
+ title.replace('&', "&&"), position+1);
tabwidget->showPage(se->widget());
tabwidget->setTabColor(se->widget(),oldcolor);
@ -3671,6 +3676,7 @
konsole->attachSession(_se);
konsole->activateSession(_se);
konsole->changeTabTextColor( _se, se_tabtextcolor.rgb() );//restore prev color
+ konsole->slotTabSetViewOptions(m_tabViewMode);
if (_se==se) {
if (se == se_previous)
More information about the konsole-devel
mailing list