[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kio/kio
From:       Alexander Neundorf <neundorf () kde ! org>
Date:       2006-11-12 1:41:04
Message-ID: 1163295664.848356.10630.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 604220 by neundorf:

fix #15876: if a file name contains a newline, the newline was displayed in the \
status bar, which m

with this patch all newlines are replaced with a space in the status bar info, so
this doesn't happen anymore. Maybe it could also be replaced by "<br>" or "\n" or ...

Maybe this could even be moved to KStringHandler cPixelSqueeze ? 
Does this still exist in KDE4 or has it been replaced by some Qt function ?

Alex

CCMAIL: kde-core-devel@kde.org



 M  +1 -0      kfileitem.cpp  


--- branches/KDE/3.5/kdelibs/kio/kio/kfileitem.cpp #604219:604220
@@ -745,6 +745,7 @@
       text += "  ";
       text += mimeComment();
   }
+  text.replace('\n', " "); // replace any newlines with a space, so the statusbar \
doesn't get a two-line string which messes the display up, Alex  return text;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic