diff --git a/src/rss.cpp b/src/rss.cpp index 2610aa270..ed4b3a166 100644 --- a/src/rss.cpp +++ b/src/rss.cpp @@ -363,12 +363,13 @@ void RssManager::saveStreamList(){ QStringList aliases; const QList &streams = getAllFeeds(); foreach(const RssStream *stream, streams) { - const QString &stream_path = stream->getPath().join("\\"); - if(!stream_path.isNull()) { - qDebug("Saving stream path: %s", qPrintable(stream_path)); - streamsUrl << stream_path; - aliases << stream->getName(); + QString stream_path = stream->getPath().join("\\"); + if(stream_path.isNull()) { + stream_path = ""; } + qDebug("Saving stream path: %s", qPrintable(stream_path)); + streamsUrl << stream_path; + aliases << stream->getName(); } QSettings settings("qBittorrent", "qBittorrent"); settings.beginGroup("Rss"); diff --git a/src/rss.h b/src/rss.h index a3b247a05..5c0d58730 100644 --- a/src/rss.h +++ b/src/rss.h @@ -108,7 +108,7 @@ public: virtual QList getNewsList() const = 0; virtual QList getUnreadNewsList() const = 0; QStringList getPath() const { - QStringList path = ""; + QStringList path; if(getParent()) { path = ((RssFile*)getParent())->getPath(); path.append(getID());