Fixed counting thx to sehraf

This commit is contained in:
defnax 2015-11-17 17:33:25 +01:00
parent 01f3db70d3
commit 701f1ceb4a

View File

@ -507,11 +507,8 @@ void IdDialog::insertIdList(uint32_t token)
}
/* count items */
for( int i = 0; i < ui->idTreeWidget->topLevelItemCount(); ++i )
{
ui->label_count->setText( "(" + QString::number(i) + ")" );
}
ui->label_count->setText( "(" + QString::number(ui->idTreeWidget->topLevelItemCount()) + ")" );
filterIds();
updateSelection();