From 62b53b3e10bf73c30440803dfa164c5aa6347973 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Sat, 3 Jul 2010 19:34:36 +0000 Subject: [PATCH] (qt) fix a potential crash in the tracker display --- qt/details.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/details.cc b/qt/details.cc index 8b2b093d2..f98ecab20 100644 --- a/qt/details.cc +++ b/qt/details.cc @@ -688,6 +688,9 @@ Details :: refresh( ) const QString tierKey( QString::number(trackerStat.tier) ); QTreeWidgetItem * tier = (QTreeWidgetItem*) myTrackerTiers.value( tierKey, 0 ); + if( tier == 0 ) // check if has tier been created this pass + tier = (QTreeWidgetItem*) trackerTiers.value( tierKey, 0 ); + if( tier == 0 ) // new tier { QFont tierFont;