From 8e5f5b5d652e35e1e1cc0df6bb331882e3ef6d22 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 23 Aug 2009 13:52:45 +0000 Subject: [PATCH] - Fixed crash on feed deletion --- src/rss_imp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rss_imp.cpp b/src/rss_imp.cpp index a76cef9b1..abdd7379f 100644 --- a/src/rss_imp.cpp +++ b/src/rss_imp.cpp @@ -156,7 +156,7 @@ void RSSImp::on_newFeedButton_clicked() { } RssStream *stream = rss_parent->addStream(newUrl); // Create TreeWidget item - QTreeWidgetItem* item = new QTreeWidgetItem(rss_parent); + QTreeWidgetItem* item = new QTreeWidgetItem(parent_item); // Notify TreeWidget listStreams->itemAdded(item, stream); // Set text @@ -188,10 +188,10 @@ void RSSImp::deleteSelectedItems() { listNews->clear(); } RssFile *rss_item = listStreams->getRSSItem(item); - rss_item->getParent()->removeFile(rss_item->getID()); // Notify TreeWidget listStreams->itemRemoved(item); // Actually delete the item + rss_item->getParent()->removeFile(rss_item->getID()); delete item; } rssmanager->saveStreamList();