From 3067f82aea1a3c0ff0df5236db05d20334887722 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Fri, 18 Mar 2016 01:52:43 +0200 Subject: [PATCH] Potential fix for crash. Closes #4607. --- src/gui/transferlistfilterswidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/transferlistfilterswidget.cpp b/src/gui/transferlistfilterswidget.cpp index b3aca3bd1..9e62e6e2e 100644 --- a/src/gui/transferlistfilterswidget.cpp +++ b/src/gui/transferlistfilterswidget.cpp @@ -480,10 +480,13 @@ void TrackerFiltersList::addItem(const QString &tracker, const QString &hash) if (tmp.contains(hash)) return; - if (host != "") + if (host != "") { trackerItem = item(rowFromTracker(host)); - else + if (!trackerItem) return; + } + else { trackerItem = item(1); + } } else { trackerItem = new QListWidgetItem();