loplugin:implicitboolconversion

Change-Id: Ic7e42f50adf85266ae6b61cf152c99081be11d4a
This commit is contained in:
Stephan Bergmann 2016-02-25 08:47:58 +01:00
parent 4943ee042a
commit fcf5192a54

View file

@ -121,7 +121,7 @@ void RemoveDisabledItemsFromNativeMenu(GLOMenu* pMenu, GList** pOldCommandList,
{
gchar* pCommand = g_lo_menu_get_command_from_item_in_section(pMenu, nSection, nSectionItems);
// remove disabled entries
bool bRemove = g_action_group_get_action_enabled(pActionGroup, pCommand) == FALSE;
bool bRemove = !g_action_group_get_action_enabled(pActionGroup, pCommand);
if (!bRemove)
{
//also remove any empty submenus