[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/knewsticker
From: Bram Schoenmakers <bramschoenmakers () kde ! nl>
Date: 2004-11-28 1:46:09
Message-ID: 20041128014609.D410619D88 () office ! kde ! org
[Download RAW message or body]
CVS commit by bram:
Only update for news when the news sources did actually change. This reduces the \
enourmous network load while defining your settings, not related to news sources.
M +2 -1 knewsticker.cpp 1.171
--- kdenetwork/knewsticker/knewsticker.cpp #1.170:1.171
@@ -132,4 +132,5 @@ void KNewsTicker::reparseConfig()
{
m_cfg->reparseConfiguration();
+ NewsSourceBase::List oldList = m_newsSources;
m_newsSources.clear();
@@ -150,5 +151,5 @@ void KNewsTicker::reparseConfig()
setOfflineMode(m_cfg->offlineMode());
- if (!m_cfg->offlineMode())
+ if (!m_cfg->offlineMode() && oldList != m_newsSources )
slotUpdateNews();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic