File 0001-Fix-check-whether-Tab-should-be-selected.patch of Package qpxtool
From 3af1532ae1937362ba24d3b380ead7f9537b4e33 Mon Sep 17 00:00:00 2001 From: Martin Hauke <mhauke@loki.home.lan> Date: Sat, 28 Dec 2024 12:41:04 +0100 Subject: [PATCH] Fix check whether Tab should be selected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ 24s] src/mainwindow.cpp:430:16: error: ordered comparison of pointer with integer zero (‘QAction*’ and ‘int’) [ 24s] 430 | if (act<0) return; [ 24s] | ~~~^~ --- gui/src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/mainwindow.cpp b/gui/src/mainwindow.cpp index 520d44e..4ec010a 100644 --- a/gui/src/mainwindow.cpp +++ b/gui/src/mainwindow.cpp @@ -427,7 +427,7 @@ void QPxToolMW::selectTab() int idx; QAction *act = (QAction*) sender(); idx = act_sblist.indexOf(act); - if (act<0) return; + if (idx<0) return; mwidget->selectTab(idx); } -- 2.47.1