[Bug 141654] kmail: window title unreadable after pasting newline to subject
groot at kde.org
groot at kde.org
Wed Feb 14 23:23:55 GMT 2007
------- 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=141654
groot kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From groot kde org 2007-02-15 00:23 -------
SVN commit 633713 by adridg:
Since newlines display as blocks, remove them from a possible caption before display.
Patch credits to pusling.
BUG:141654
M +5 -2 branches/work/kdepim-3.5.5+/kmail/kmcomposewin.cpp
--- branches/work/kdepim-3.5.5+/kmail/kmcomposewin.cpp #633712:633713
@ -3594,9 +3594,12 @
//-----------------------------------------------------------------------------
void KMComposeWin::slotUpdWinTitle(const QString& text)
{
+ QString s( text );
+ // Remove characters that show badly in most window decorations:
+ // newlines tend to become boxes.
if (text.isEmpty())
- setCaption("("+i18n("unnamed")+")");
- else setCaption(text);
+ setCaption("("+i18n("unnamed")+")");
+ else setCaption( s.replace( QChar('\n'), ' ' ) );
}
More information about the Kdepim-bugs
mailing list