Summary: | kmail: window title unreadable after pasting newline to subject | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Sune Vuorela <debian> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Proposed patch |
Description
Sune Vuorela
2007-02-13 21:24:43 UTC
Created attachment 19677 [details]
Proposed patch
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'), ' ' ) ); } |