From 0fb78727d594234aea24bbe6e5af8265e76a6e11 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 22 Jul 2007 14:14:05 +0000 Subject: [PATCH] - Added more debug in rss --- src/rss.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rss.h b/src/rss.h index b73d41e76..54e249f95 100644 --- a/src/rss.h +++ b/src/rss.h @@ -257,7 +257,6 @@ class RssStream : public QObject{ } QString getLastRefreshElapsedString() const{ - // TODO: remove this debug before release return tr("%1 ago", "10min ago").arg(misc::userFriendlyDuration((long)(lastRefresh.elapsed()/1000.)).replace("<", "<")); } @@ -387,10 +386,13 @@ class RssStream : public QObject{ qDebug("error: icon open failed, no file or empty file at "+iconPath.toUtf8()); if(QFile::exists(iconPath)) { QFile::remove(iconPath); - if(downloadFailure) + if(downloadFailure){ iconPath = ":/Icons/unavailable.png"; - else + qDebug("Could not open favicon nor rss stream, setting icon to unavailable (%s)",(const char*)getAlias().toUtf8()); + } else { iconPath = ":/Icons/rss.png"; + qDebug("Could not open favicon, setting default icon (%s)",(const char*)getAlias().toUtf8()); + } } } }