- 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() {
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

View file

@ -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() {