mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 13:28:50 +03:00
- "add new Feed" when clicking on "Unread" item will not add the new feed as a child to "Unread" item
This commit is contained in:
parent
39c16b20ae
commit
ca00f3084d
1 changed files with 6 additions and 2 deletions
|
@ -133,8 +133,12 @@ void RSSImp::on_newFeedButton_clicked() {
|
||||||
// Determine parent folder for new feed
|
// Determine parent folder for new feed
|
||||||
QTreeWidgetItem *parent_item = 0;
|
QTreeWidgetItem *parent_item = 0;
|
||||||
QList<QTreeWidgetItem *> selected_items = listStreams->selectedItems();
|
QList<QTreeWidgetItem *> selected_items = listStreams->selectedItems();
|
||||||
if(!selected_items.empty())
|
if(!selected_items.empty()) {
|
||||||
parent_item = selected_items.first();
|
parent_item = selected_items.first();
|
||||||
|
// Consider the case where the user clicked on Unread item
|
||||||
|
if(parent_item == listStreams->getUnreadItem())
|
||||||
|
parent_item = 0;
|
||||||
|
}
|
||||||
RssFolder *rss_parent;
|
RssFolder *rss_parent;
|
||||||
if(parent_item) {
|
if(parent_item) {
|
||||||
RssFile* tmp = listStreams->getRSSItem(parent_item);
|
RssFile* tmp = listStreams->getRSSItem(parent_item);
|
||||||
|
|
Loading…
Reference in a new issue