mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Fix compilation error
This commit is contained in:
parent
17e39f56dd
commit
07ef81fd95
2 changed files with 7 additions and 6 deletions
|
@ -363,13 +363,14 @@ void RssManager::saveStreamList(){
|
||||||
QStringList aliases;
|
QStringList aliases;
|
||||||
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("\\");
|
QString stream_path = stream->getPath().join("\\");
|
||||||
if(!stream_path.isNull()) {
|
if(stream_path.isNull()) {
|
||||||
|
stream_path = "";
|
||||||
|
}
|
||||||
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
|
||||||
|
|
|
@ -108,7 +108,7 @@ public:
|
||||||
virtual QList<RssItem*> getNewsList() const = 0;
|
virtual QList<RssItem*> getNewsList() const = 0;
|
||||||
virtual QList<RssItem*> getUnreadNewsList() const = 0;
|
virtual QList<RssItem*> getUnreadNewsList() const = 0;
|
||||||
QStringList getPath() const {
|
QStringList getPath() const {
|
||||||
QStringList path = "";
|
QStringList path;
|
||||||
if(getParent()) {
|
if(getParent()) {
|
||||||
path = ((RssFile*)getParent())->getPath();
|
path = ((RssFile*)getParent())->getPath();
|
||||||
path.append(getID());
|
path.append(getID());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue