1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Fix possible crash on clicking a RSS article

This commit is contained in:
Christophe Dumez 2010-10-28 17:07:29 +00:00
parent bee507cb45
commit 071801fee7

View File

@ -489,7 +489,7 @@ void RSSImp::refreshTextBrowser() {
// Stop displaying previous news if necessary // Stop displaying previous news if necessary
if(listStreams->currentFeed() == listStreams->getUnreadItem()) { if(listStreams->currentFeed() == listStreams->getUnreadItem()) {
if(previous_news) { if(previous_news) {
delete listNews->takeTopLevelItem(listNews->indexOfTopLevelItem(previous_news)); delete previous_news;
} }
previous_news = item; previous_news = item;
} }