* src/frontends/qt4/IconPalette.cpp (updateParent): listen to André

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20651 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-10-02 05:54:36 +00:00
parent 591b11de53
commit 22561386d0

View File

@ -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