Fix ftbfs on Fedora 34

error: ordered comparison of pointer with integer zero (‘TQListViewItem*’ and ‘int’)

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/7/head
François Andriot 4 years ago
parent e39e316d00
commit 7576a4bfe8

@ -1312,7 +1312,7 @@ void torkView::activeServersUpdated( const TQStringList &servers)
{
if ((*it).isEmpty())
continue;
if ( (tm = serverList->findItem((*it),1)) > 0){
if ( (tm = serverList->findItem((*it),1)) != NULL){
tm->setPixmap(0,TQPixmap(SmallIcon("tork_green")));
}else{
tm = new TQListViewItem(serverList, (*it));

Loading…
Cancel
Save