mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
(qt) fix a potential crash in the tracker display
This commit is contained in:
parent
1df54942dc
commit
62b53b3e10
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue