summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2021-05-11 20:34:45 +0200
committerMichele Calgaro <[email protected]>2021-05-12 09:45:38 +0900
commitcbc987d313a3b03da957e278e49c09d87dd87560 (patch)
treea606d22b925ac3c9b5e4aa7ceb45a9b6ba26699d
parent8ede7f8d0b1c7964d17a630159993c07f0c6f908 (diff)
downloadtork-cbc987d313a3b03da957e278e49c09d87dd87560.tar.gz
tork-cbc987d313a3b03da957e278e49c09d87dd87560.zip
Fix ftbfs on Fedora 34
error: ordered comparison of pointer with integer zero (‘TQListViewItem*’ and ‘int’) Signed-off-by: François Andriot <[email protected]> (cherry picked from commit 7576a4bfe86835552ede116488e70baae64df9e8)
-rw-r--r--src/torkview.cpp2
1 files changed, 1 insertions, 1 deletions
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));