mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
- Refresh RSS feed as soon as feed downloader is enabled
This commit is contained in:
parent
52dd1476db
commit
4732c8565d
2 changed files with 9 additions and 2 deletions
|
@ -271,6 +271,8 @@ public:
|
|||
}
|
||||
|
||||
~FeedDownloaderDlg() {
|
||||
if(enableDl_cb->isChecked())
|
||||
emit filteringEnabled();
|
||||
// Make sure we save everything
|
||||
saveCurrentFilterSettings();
|
||||
filters.save();
|
||||
|
@ -501,6 +503,9 @@ protected slots:
|
|||
QMessageBox::warning(0, tr("Export failure"), tr("Filters could not be exported due to an I/O error."));
|
||||
}
|
||||
|
||||
signals:
|
||||
void filteringEnabled();
|
||||
|
||||
};
|
||||
|
||||
#undef QHash
|
||||
|
|
|
@ -374,8 +374,10 @@ void RSSImp::copySelectedFeedsURL() {
|
|||
void RSSImp::showFeedDownloader() {
|
||||
QTreeWidgetItem* item = listStreams->selectedItems()[0];
|
||||
RssFile* rss_item = listStreams->getRSSItem(item);
|
||||
if(rss_item->getType() == RssFile::STREAM)
|
||||
new FeedDownloaderDlg(this, listStreams->getItemID(item), rss_item->getName(), BTSession);
|
||||
if(rss_item->getType() == RssFile::STREAM) {
|
||||
FeedDownloaderDlg* feedDownloader = new FeedDownloaderDlg(this, listStreams->getItemID(item), rss_item->getName(), BTSession);
|
||||
connect(feedDownloader, SIGNAL(filteringEnabled()), this, SLOT(on_updateAllButton_clicked()));
|
||||
}
|
||||
}
|
||||
|
||||
void RSSImp::on_markReadButton_clicked() {
|
||||
|
|
Loading…
Reference in a new issue