mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
listen to andré
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20640 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
619a52ecc4
commit
893b969696
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user