mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 19:40:10 +00:00
* 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:
parent
591b11de53
commit
22561386d0
@ -219,7 +219,7 @@ void IconPalette::updateParent()
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// we check only the first action to enable/disable the panel
|
// we check only the first action to enable/disable the panel
|
||||||
if (actions_.size() > 0)
|
if (!actions_.isEmpty())
|
||||||
enable = actions_.at(0)->isEnabled();
|
enable = actions_.at(0)->isEnabled();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -276,7 +276,7 @@ void ButtonMenu::updateParent()
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// we check only the first action to enable/disable the menu
|
// we check only the first action to enable/disable the menu
|
||||||
if (actions_.size() > 0)
|
if (!actions_.isEmpty())
|
||||||
enable = actions_.at(0)->isEnabled();
|
enable = actions_.at(0)->isEnabled();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user