Bug 63265

Summary: Ampersands in news source is shown as underline
Product: knewsticker Reporter: Malte S. Stretz <mss>
Component: generalAssignee: Frerich Raabe <raabe>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot

Description Malte S. Stretz 2003-08-26 09:00:43 UTC
Version:            (using KDE 3.1.3)
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.18

News sources which contain ampersands in their title are displayed incorrectly: The ampersand is not escaped and thus interpreted as an accelerator.
Comment 1 Malte S. Stretz 2003-08-26 09:01:09 UTC
Created attachment 2314 [details]
screenshot
Comment 2 Frerich Raabe 2003-08-31 07:28:27 UTC
Subject: kdenetwork/knewsticker

CVS commit by raabe: 

- Display news sources with ampersands in the name correctly
CCMAIL:63265-done@bugs.kde.org


  M +1 -1      knewsticker.cpp   1.156


--- kdenetwork/knewsticker/knewsticker.cpp  #1.155:1.156
@@ -435,5 +435,5 @@ void KNewsTickerMenu::populateMenu()
                 submenu->insertItem(lookIcon, i18n("Check News"), idx++);
                 submenu->insertSeparator();
-                insertItem(ns->icon(), ns->newsSourceName(), submenu);
+                insertItem(ns->icon(), ns->newsSourceName().replace('&', "&&"), submenu);
 
                 if (m_parent->m_pendingNewsUpdates.contains(ns->newsSourceName())) {