1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-25 14:04:23 +00:00

- Fix "Refresh selected stream" when Unread item is selected

This commit is contained in:
Christophe Dumez 2009-08-24 08:12:42 +00:00
parent 1560b4ca3b
commit 6ba5df3ec8

View File

@ -317,6 +317,13 @@ void RSSImp::refreshSelectedItems() {
foreach(QTreeWidgetItem* item, selectedItems){
RssFile* file = listStreams->getRSSItem(item);
// Update icons
if(item == listStreams->getUnreadItem()) {
foreach(QTreeWidgetItem *feed, listStreams->getAllFeedItems()) {
feed->setData(0,Qt::DecorationRole, QVariant(QIcon(":/Icons/loading.png")));
}
file->refresh();
break;
} else {
if(file->getType() == RssFile::STREAM) {
item->setData(0,Qt::DecorationRole, QVariant(QIcon(":/Icons/loading.png")));
} else {
@ -325,6 +332,7 @@ void RSSImp::refreshSelectedItems() {
feed->setData(0,Qt::DecorationRole, QVariant(QIcon(":/Icons/loading.png")));
}
}
}
// Actually refresh
file->refresh();
}