Browse Source

- Fix crash when a new RSS feed is added and its URL is reformatted/simplified by QUrl(URL).toString(). (closes #420116)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
a33094519c
  1. 6
      src/rss.cpp

6
src/rss.cpp

@ -99,10 +99,10 @@ RssFolder* RssFolder::addFolder(QString name) { @@ -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;
}

Loading…
Cancel
Save