From ee940a85d7111645f918e507dd4c1aae7468c388 Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 5 Oct 2012 12:50:00 +0000 Subject: [PATCH] Compilation without error on gcc 4.7 --- src/Qtx/QtxPopupMgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Qtx/QtxPopupMgr.cxx b/src/Qtx/QtxPopupMgr.cxx index 2710a0933..1c9055c9b 100644 --- a/src/Qtx/QtxPopupMgr.cxx +++ b/src/Qtx/QtxPopupMgr.cxx @@ -374,7 +374,7 @@ int QtxPopupMgr::insertAction( QAction* a, const int pId, const QString& rule, c */ bool QtxPopupMgr::hasRule( QAction* a, const RuleType t ) const { - return a ? expression( a, t, false ) : false; + return a ? expression( a, t, false )!=0 : false; } /*! -- 2.39.2