]> git.lyx.org Git - features.git/commitdiff
listen to andré
authorEdwin Leuven <e.leuven@gmail.com>
Mon, 1 Oct 2007 17:40:42 +0000 (17:40 +0000)
committerEdwin Leuven <e.leuven@gmail.com>
Mon, 1 Oct 2007 17:40:42 +0000 (17:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20640 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/IconPalette.cpp

index 9c9036da238aeac06636de7c87450b16e7dab691..edc961f99f0560e365a2c5b74bed4636e1b4e28a 100644 (file)
@@ -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