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

List:       kde-commits
Subject:    branches/KDE/3.5/kdenetwork/kopete/kopete/contactlist
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2005-11-18 9:35:11
Message-ID: 1132306511.756249.3667.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 481230 by ogoffart:

Fix Bug 115449: Display names containing amphasands (&) appear incorrectly in contact \
                context menu
BUG: 115449

Thanks for the bug report




 M  +1 -0      kopetecontactlistview.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/kopete/contactlist/kopetecontactlistview.cpp \
#481229:481230 @@ -709,6 +709,7 @@
 					connect( popup, SIGNAL( aboutToHide() ), contactMenu, SLOT( deleteLater() ) );
 					QString nick=c->property(Kopete::Global::Properties::self()->nickName()).value().toString();
                
 					QString text= nick.isEmpty() ?  c->contactId() : i18n( "Translators: format: \
'<displayName> (<id>)'", "%2 <%1>" ). arg( c->contactId(), nick ); \
+					text=text.replace("&","&&"); // cf BUG 115449  
 					if ( text.length() > 41 )
 						text = text.left( 38 ) + QString::fromLatin1( "..." );


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

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