mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Fix possible crash on clicking a RSS article
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user