mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix feed list refresh issue
This commit is contained in:
parent
5a02c56865
commit
1904bc1abb
1 changed files with 3 additions and 4 deletions
|
@ -53,10 +53,7 @@ AutomatedRssDownloader::AutomatedRssDownloader(QWidget *parent) :
|
||||||
loadSettings();
|
loadSettings();
|
||||||
connect(ui->listRules, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), SLOT(updateRuleDefinitionBox(QListWidgetItem*,QListWidgetItem*)));
|
connect(ui->listRules, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), SLOT(updateRuleDefinitionBox(QListWidgetItem*,QListWidgetItem*)));
|
||||||
connect(ui->listRules, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), SLOT(updateFeedList(QListWidgetItem*,QListWidgetItem*)));
|
connect(ui->listRules, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), SLOT(updateFeedList(QListWidgetItem*,QListWidgetItem*)));
|
||||||
if(ui->listRules->count() > 0)
|
updateRuleDefinitionBox();
|
||||||
ui->listRules->setCurrentRow(0);
|
|
||||||
else
|
|
||||||
updateRuleDefinitionBox();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AutomatedRssDownloader::~AutomatedRssDownloader()
|
AutomatedRssDownloader::~AutomatedRssDownloader()
|
||||||
|
@ -112,6 +109,8 @@ void AutomatedRssDownloader::loadFeedList()
|
||||||
item->setData(Qt::UserRole, feed_urls.at(i));
|
item->setData(Qt::UserRole, feed_urls.at(i));
|
||||||
item->setFlags(item->flags()|Qt::ItemIsUserCheckable);
|
item->setFlags(item->flags()|Qt::ItemIsUserCheckable);
|
||||||
}
|
}
|
||||||
|
if(ui->listRules->count() > 0 && !ui->listRules->currentItem())
|
||||||
|
ui->listRules->setCurrentRow(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList AutomatedRssDownloader::getSelectedFeeds() const
|
QStringList AutomatedRssDownloader::getSelectedFeeds() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue