- Do not update the icon when clicking "Mark all as read" on a feed that is still loading

- Added some more debug messages
This commit is contained in:
Christophe Dumez 2009-08-28 16:57:28 +00:00
parent f2ea524be9
commit 7a59d5e47c
3 changed files with 12 additions and 2 deletions

View file

@ -137,8 +137,12 @@ void RssFolder::refreshStream(QString url) {
qDebug("Refreshing feed: %s", url.toLocal8Bit().data());
Q_ASSERT(this->contains(url));
RssStream *stream = (RssStream*)this->value(url);
if(stream->isLoading()) return;
if(stream->isLoading()) {
qDebug("Stream %s is already being loaded...", stream->getUrl().toLocal8Bit().data());
return;
}
stream->setLoading(true);
qDebug("stream %s : loaded=true", stream->getUrl().toLocal8Bit().data());
downloader->downloadUrl(url);
if(!stream->hasCustomIcon()){
downloader->downloadUrl(stream->getIconUrl());
@ -186,6 +190,7 @@ void RssFolder::processFinishedDownload(QString url, QString path) {
}
stream->processDownloadedFile(path);
stream->setLoading(false);
qDebug("stream %s : loaded=false", stream->getUrl().toLocal8Bit().data());
// If the feed has no alias, then we use the title as Alias
// this is more user friendly
if(stream->getName().isEmpty()){