Browse Source

Fix compilation error

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
07ef81fd95
  1. 7
      src/rss.cpp
  2. 2
      src/rss.h

7
src/rss.cpp

@ -363,13 +363,14 @@ void RssManager::saveStreamList(){ @@ -363,13 +363,14 @@ void RssManager::saveStreamList(){
QStringList aliases;
const QList<RssStream*> &streams = getAllFeeds();
foreach(const RssStream *stream, streams) {
const QString &stream_path = stream->getPath().join("\\");
if(!stream_path.isNull()) {
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");
// FIXME: Empty folder are not saved

2
src/rss.h

@ -108,7 +108,7 @@ public: @@ -108,7 +108,7 @@ public:
virtual QList<RssItem*> getNewsList() const = 0;
virtual QList<RssItem*> getUnreadNewsList() const = 0;
QStringList getPath() const {
QStringList path = "";
QStringList path;
if(getParent()) {
path = ((RssFile*)getParent())->getPath();
path.append(getID());

Loading…
Cancel
Save