Merge pull request #3730 from Gelmir/rss_save

Couple o' fixes to RSS
This commit is contained in:
sledgehammer999
2015-09-17 17:02:27 -05:00
6 changed files with 18 additions and 2 deletions

View File

@@ -1616,6 +1616,13 @@ void Preferences::setTorrentLabels(const QStringList& labels)
setValue("TransferListFilters/customLabels", labels);
}
void Preferences::addTorrentLabelExternal(const QString &label)
{
addTorrentLabel(label);
QString toEmit = label;
emit externalLabelAdded(toEmit);
}
void Preferences::addTorrentLabel(const QString& label)
{
QStringList labels = value("TransferListFilters/customLabels").toStringList();

View File

@@ -112,6 +112,7 @@ private slots:
signals:
void changed();
void externalLabelAdded(QString&);
public:
static void initInstance();
@@ -399,6 +400,7 @@ public:
#endif
QStringList getTorrentLabels() const;
void setTorrentLabels(const QStringList& labels);
void addTorrentLabelExternal(const QString &label);
void addTorrentLabel(const QString& label);
void removeTorrentLabel(const QString& label);
bool recursiveDownloadDisabled() const;