1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

- Refresh RSS feed as soon as feed downloader is enabled

This commit is contained in:
Christophe Dumez 2010-01-07 18:42:47 +00:00
parent 52dd1476db
commit 4732c8565d
2 changed files with 9 additions and 2 deletions

View File

@ -271,6 +271,8 @@ public:
} }
~FeedDownloaderDlg() { ~FeedDownloaderDlg() {
if(enableDl_cb->isChecked())
emit filteringEnabled();
// Make sure we save everything // Make sure we save everything
saveCurrentFilterSettings(); saveCurrentFilterSettings();
filters.save(); 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.")); QMessageBox::warning(0, tr("Export failure"), tr("Filters could not be exported due to an I/O error."));
} }
signals:
void filteringEnabled();
}; };
#undef QHash #undef QHash

View File

@ -374,8 +374,10 @@ void RSSImp::copySelectedFeedsURL() {
void RSSImp::showFeedDownloader() { void RSSImp::showFeedDownloader() {
QTreeWidgetItem* item = listStreams->selectedItems()[0]; QTreeWidgetItem* item = listStreams->selectedItems()[0];
RssFile* rss_item = listStreams->getRSSItem(item); RssFile* rss_item = listStreams->getRSSItem(item);
if(rss_item->getType() == RssFile::STREAM) if(rss_item->getType() == RssFile::STREAM) {
new FeedDownloaderDlg(this, listStreams->getItemID(item), rss_item->getName(), BTSession); 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() { void RSSImp::on_markReadButton_clicked() {