1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Added another check

This commit is contained in:
Christophe Dumez 2010-03-07 21:03:51 +00:00
parent 93563365ac
commit 040e94cab7

View File

@ -364,10 +364,12 @@ void RssManager::saveStreamList(){
const QList<RssStream*> &streams = getAllFeeds(); const QList<RssStream*> &streams = getAllFeeds();
foreach(const RssStream *stream, streams) { foreach(const RssStream *stream, streams) {
const QString &stream_path = stream->getPath().join("\\"); const QString &stream_path = stream->getPath().join("\\");
if(!stream_path.isNull()) {
qDebug("Saving stream path: %s", qPrintable(stream_path)); qDebug("Saving stream path: %s", qPrintable(stream_path));
streamsUrl << stream_path; streamsUrl << stream_path;
aliases << stream->getName(); aliases << stream->getName();
} }
}
QSettings settings("qBittorrent", "qBittorrent"); QSettings settings("qBittorrent", "qBittorrent");
settings.beginGroup("Rss"); settings.beginGroup("Rss");
// FIXME: Empty folder are not saved // FIXME: Empty folder are not saved