summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2017-08-11 12:36:52 +0300
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-08-11 15:44:01 +0200
commit114d3b369ae765ce106ffebfeac4498598b6c6b7 (patch)
tree00934068c3ebfcf3995e595e0b86c5b53dfff94e /cui
parentda3d4d2160ee71ebef9aa42ad4b9f2af9da2ed02 (diff)
Remove useless if check
And the return in the default case, which could cause the UI element to stop updating Change-Id: I29d35818b015f71890f615a02ea215034c048326 Reviewed-on: https://gerrit.libreoffice.org/41020 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfgutil.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index f69f184afed9..3c409e182ed2 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -865,14 +865,6 @@ void SfxConfigGroupListBox::GroupSelected()
SfxGroupInfo_Impl *pInfo = static_cast<SfxGroupInfo_Impl*>(pEntry->GetUserData());
pFunctionListBox->SetUpdateMode(false);
pFunctionListBox->ClearAll();
- if ( pInfo->nKind != SfxCfgKind::GROUP_FUNCTION &&
- pInfo->nKind != SfxCfgKind::GROUP_ALLFUNCTIONS &&
- pInfo->nKind != SfxCfgKind::GROUP_SCRIPTCONTAINER &&
- pInfo->nKind != SfxCfgKind::GROUP_STYLES )
- {
- pFunctionListBox->SetUpdateMode(true);
- return;
- }
switch ( pInfo->nKind )
{
@@ -994,7 +986,9 @@ void SfxConfigGroupListBox::GroupSelected()
}
default:
- return;
+ // Do nothing, the list box will stay empty
+ SAL_INFO( "cui.customize", "Ignoring unexpected SfxCfgKind: " << static_cast<int>(pInfo->nKind) );
+ break;
}
if ( pFunctionListBox->GetEntryCount() )