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>
(cherry picked from commit 7576a4bfe8)
r14.0.x
François Andriot 3 years ago committed by Michele Calgaro
parent 8ede7f8d0b
commit cbc987d313
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

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