Browse Source

Fix feed list refresh issue

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
1904bc1abb
  1. 5
      src/rss/automatedrssdownloader.cpp

5
src/rss/automatedrssdownloader.cpp

@ -53,9 +53,6 @@ AutomatedRssDownloader::AutomatedRssDownloader(QWidget *parent) : @@ -53,9 +53,6 @@ AutomatedRssDownloader::AutomatedRssDownloader(QWidget *parent) :
loadSettings();
connect(ui->listRules, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), SLOT(updateRuleDefinitionBox(QListWidgetItem*,QListWidgetItem*)));
connect(ui->listRules, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), SLOT(updateFeedList(QListWidgetItem*,QListWidgetItem*)));
if(ui->listRules->count() > 0)
ui->listRules->setCurrentRow(0);
else
updateRuleDefinitionBox();
}
@ -112,6 +109,8 @@ void AutomatedRssDownloader::loadFeedList() @@ -112,6 +109,8 @@ void AutomatedRssDownloader::loadFeedList()
item->setData(Qt::UserRole, feed_urls.at(i));
item->setFlags(item->flags()|Qt::ItemIsUserCheckable);
}
if(ui->listRules->count() > 0 && !ui->listRules->currentItem())
ui->listRules->setCurrentRow(0);
}
QStringList AutomatedRssDownloader::getSelectedFeeds() const

Loading…
Cancel
Save