From kde-commits Tue Sep 21 23:01:22 2010 From: Allen Winter Date: Tue, 21 Sep 2010 23:01:22 +0000 To: kde-commits Subject: KDE/kdepim/akregator/src Message-Id: <20100921230122.31545AC888 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128511060411723 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);