From 2ea1716c1a649323a14127f68b16834a12241353 Mon Sep 17 00:00:00 2001 From: ngosang Date: Fri, 25 Mar 2016 20:38:18 +0100 Subject: [PATCH] Potential fix for crash. Closes #4990, #4905, #4864, #4855, #4818, #4726, #4648 --- src/gui/transferlistfilterswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/transferlistfilterswidget.cpp b/src/gui/transferlistfilterswidget.cpp index 9e62e6e2e..c83f48b87 100644 --- a/src/gui/transferlistfilterswidget.cpp +++ b/src/gui/transferlistfilterswidget.cpp @@ -482,7 +482,6 @@ void TrackerFiltersList::addItem(const QString &tracker, const QString &hash) if (host != "") { trackerItem = item(rowFromTracker(host)); - if (!trackerItem) return; } else { trackerItem = item(1); @@ -494,6 +493,7 @@ void TrackerFiltersList::addItem(const QString &tracker, const QString &hash) downloadFavicon(QString("http://%1/favicon.ico").arg(host)); } + if (!trackerItem) return; tmp.append(hash); m_trackers.insert(host, tmp);