Browse Source

- Fix "add new Feed" when no item is selected (or Unread item is selected)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
68d8a9ed47
  1. 6
      src/rss_imp.cpp

6
src/rss_imp.cpp

@ -168,7 +168,11 @@ void RSSImp::on_newFeedButton_clicked() {
} }
RssStream *stream = rss_parent->addStream(newUrl); RssStream *stream = rss_parent->addStream(newUrl);
// Create TreeWidget item // 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 // Notify TreeWidget
listStreams->itemAdded(item, stream); listStreams->itemAdded(item, stream);
// Set text // Set text

Loading…
Cancel
Save