From 893b969696dbba7058824044d186c74dbe1046fe Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Mon, 1 Oct 2007 17:40:42 +0000 Subject: [PATCH] =?utf8?q?listen=20to=20andr=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20640 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/IconPalette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/IconPalette.cpp b/src/frontends/qt4/IconPalette.cpp index 9c9036da23..edc961f99f 100644 --- a/src/frontends/qt4/IconPalette.cpp +++ b/src/frontends/qt4/IconPalette.cpp @@ -217,7 +217,7 @@ void IconPalette::updateParent() } #else // we check only the first action to enable/disable the menu - if (actions_.size() > 0) + if (!actions_.isEmpty()) enable = actions_.at(0)->isEnabled(); #endif @@ -274,7 +274,7 @@ void ButtonMenu::updateParent() } #else // we check only the first action to enable/disable the menu - if (actions_.size() > 0) + if (!actions_.isEmpty()) enable = actions_.at(0)->isEnabled(); #endif -- 2.39.2