From 7576a4bfe86835552ede116488e70baae64df9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 11 May 2021 20:34:45 +0200 Subject: [PATCH] Fix ftbfs on Fedora 34 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: ordered comparison of pointer with integer zero (‘TQListViewItem*’ and ‘int’) Signed-off-by: François Andriot --- src/torkview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torkview.cpp b/src/torkview.cpp index 1dd8b5d..ce32aea 100644 --- a/src/torkview.cpp +++ b/src/torkview.cpp @@ -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));