mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 10:16:00 +03:00
- Fix "add new Feed" when no item is selected (or Unread item is selected)
This commit is contained in:
parent
ca00f3084d
commit
68d8a9ed47
1 changed files with 5 additions and 1 deletions
|
@ -168,7 +168,11 @@ void RSSImp::on_newFeedButton_clicked() {
|
|||
}
|
||||
RssStream *stream = rss_parent->addStream(newUrl);
|
||||
// Create TreeWidget item
|
||||
QTreeWidgetItem* item = new QTreeWidgetItem(parent_item);
|
||||
QTreeWidgetItem* item;
|
||||
if(parent_item)
|
||||
item = new QTreeWidgetItem(parent_item);
|
||||
else
|
||||
item = new QTreeWidgetItem(listStreams);
|
||||
// Notify TreeWidget
|
||||
listStreams->itemAdded(item, stream);
|
||||
// Set text
|
||||
|
|
Loading…
Reference in a new issue