(qt) fix a potential crash in the tracker display

This commit is contained in:
Daniel Lee 2010-07-03 19:34:36 +00:00
parent 1df54942dc
commit 62b53b3e10
1 changed files with 3 additions and 0 deletions

View File

@ -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;