Bug 63265 - Ampersands in news source is shown as underline
Summary: Ampersands in news source is shown as underline
Status: RESOLVED FIXED
Alias: None
Product: knewsticker
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Frerich Raabe
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-26 09:00 UTC by Malte S. Stretz
Modified: 2003-08-31 07:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (10.44 KB, image/png)
2003-08-26 09:01 UTC, Malte S. Stretz
Details

Note You need to log in before you can comment on or make changes to this bug.
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())) {