From: Edwin Leuven Date: Mon, 1 Oct 2007 17:40:42 +0000 (+0000) Subject: listen to andré X-Git-Tag: 1.6.10~8091 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=893b969696dbba7058824044d186c74dbe1046fe;p=features.git listen to andré git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20640 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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