summaryrefslogtreecommitdiffstats
path: root/akregator/src/article.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/article.cpp')
-rw-r--r--akregator/src/article.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/akregator/src/article.cpp b/akregator/src/article.cpp
index 8b62509f4..0e01d3e7c 100644
--- a/akregator/src/article.cpp
+++ b/akregator/src/article.cpp
@@ -91,6 +91,7 @@ Article::Article(const TQString& guid, Feed* feed) : d(new Private)
d->guid = guid;
d->archive = Backend::Storage::getInstance()->archiveFor(feed->xmlUrl());
d->status = 0;
+ d->hash = 0;
}
void Article::initialize(RSS::Article article, Backend::FeedStorage* archive)
@@ -101,7 +102,7 @@ void Article::initialize(RSS::Article article, Backend::FeedStorage* archive)
+ article.commentsLink().url() );
d->guid = article.guid();
-
+
if (!d->archive->contains(d->guid))
{
d->archive->addEntry(d->guid);
@@ -113,7 +114,7 @@ void Article::initialize(RSS::Article article, Backend::FeedStorage* archive)
}
else
{ // article is not deleted, let's add it to the archive
-
+
d->archive->setHash(d->guid, hash() );
TQString title = article.title().isEmpty() ? buildTitle(article.description()) : article.title();
d->archive->setTitle(d->guid, title);
@@ -358,7 +359,6 @@ KURL Article::commentsLink() const
int Article::comments() const
{
-
return d->archive->comments(d->guid);
}