mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix possible crash when adding a new RSS stream
This commit is contained in:
parent
cc192d7d47
commit
c40801ce99
3 changed files with 11 additions and 4 deletions
|
@ -69,7 +69,10 @@ RssFolderPtr RssFolder::addFolder(const QString &name) {
|
|||
}
|
||||
|
||||
RssFeedPtr RssFolder::addStream(RssManager* manager, const QString &url) {
|
||||
qDebug() << Q_FUNC_INFO << manager << url;
|
||||
RssFeedPtr stream(new RssFeed(manager, this, url));
|
||||
Q_ASSERT(stream);
|
||||
qDebug() << "Stream URL is " << stream->url();
|
||||
Q_ASSERT(!m_children.contains(stream->url()));
|
||||
m_children[stream->url()] = stream;
|
||||
stream->refresh();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue