[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/akregator/src
From: Allen Winter <winter () kde ! org>
Date: 2010-09-21 23:01:22
Message-ID: 20100921230122.31545AC888 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1177997 by winterz:
don't fetch some feeds times and times again (if it cannot access them).
http://reviewboard.kde.org/r/5384/
Thanks Shlomi!
BUG: 225851
MERGE: 4.5
M +7 -1 feed.cpp
M +2 -0 feed.h
--- trunk/KDE/kdepim/akregator/src/feed.cpp #1177996:1177997
@@ -641,6 +641,7 @@
d->fetchErrorCode = status;
emit fetchError(this);
}
+ markAsFetchedNow();
return;
}
@@ -675,10 +676,15 @@
appendArticles(doc);
- d->archive->setLastFetch( QDateTime::currentDateTime().toTime_t());
+ markAsFetchedNow();
emit fetched(this);
}
+void Feed::markAsFetchedNow()
+{
+ d->archive->setLastFetch( QDateTime::currentDateTime().toTime_t());
+}
+
QIcon Feed::icon() const
{
if ( fetchErrorOccurred() )
--- trunk/KDE/kdepim/akregator/src/feed.h #1177996:1177997
@@ -282,6 +282,8 @@
/** executes the actual fetch action */
void tryFetch();
+ void markAsFetchedNow();
+
private slots:
void fetchCompleted(Syndication::Loader *loader, Syndication::FeedPtr doc, \
Syndication::ErrorCode errorCode);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic