From 22561386d046951051299941fee6b925127f99f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 2 Oct 2007 05:54:36 +0000 Subject: [PATCH] =?UTF-8?q?*=20src/frontends/qt4/IconPalette.cpp=20(update?= =?UTF-8?q?Parent):=20listen=20to=20Andr=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20651 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 d789b4cce2..ef0e04b08a 100644 --- a/src/frontends/qt4/IconPalette.cpp +++ b/src/frontends/qt4/IconPalette.cpp @@ -219,7 +219,7 @@ void IconPalette::updateParent() } #else // we check only the first action to enable/disable the panel - if (actions_.size() > 0) + if (!actions_.isEmpty()) enable = actions_.at(0)->isEnabled(); #endif @@ -276,7 +276,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