From a33094519c46bac8dcb7c7625d3d32d26107b088 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 28 Aug 2009 06:38:19 +0000 Subject: [PATCH] - Fix crash when a new RSS feed is added and its URL is reformatted/simplified by QUrl(URL).toString(). (closes #420116) --- src/rss.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rss.cpp b/src/rss.cpp index 53285023e..edc128bd7 100644 --- a/src/rss.cpp +++ b/src/rss.cpp @@ -99,10 +99,10 @@ RssFolder* RssFolder::addFolder(QString name) { } RssStream* RssFolder::addStream(QString url) { - Q_ASSERT(!this->contains(url)); RssStream* stream = new RssStream(this, rssmanager, BTSession, url); - (*this)[url] = stream; - refreshStream(url); + Q_ASSERT(!this->contains(stream->getUrl())); + (*this)[stream->getUrl()] = stream; + refreshStream(stream->getUrl()); return stream; }