summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-26 13:35:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-26 18:02:19 +0100
commitb624b13b3d5a8e573c7de8158cadc66b1982d157 (patch)
tree56948e6a5e8d7f5a7cbde6328a27f13ecd8a72bc /dbaccess/source/ui
parent8136620ff432bf17815bef1f88c7531edb839d23 (diff)
loplugin:flatten
Change-Id: Ib7a895fba66f8dc9b6501e61631c02694053b7fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113157 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 4d6b88f79738..1ab3c0ad29bf 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -580,19 +580,19 @@ void OAppDetailPageHelper::createPage(ElementType _eType,const Reference< XNameA
m_aLists[_eType] = createSimpleTree(sHelpId, _eType);
}
- if ( m_aLists[_eType] )
+ if ( !m_aLists[_eType] )
+ return;
+
+ weld::TreeView& rTreeView = m_aLists[_eType]->GetWidget();
+ if (!rTreeView.n_children() && _xContainer.is())
{
- weld::TreeView& rTreeView = m_aLists[_eType]->GetWidget();
- if (!rTreeView.n_children() && _xContainer.is())
- {
- rTreeView.make_unsorted();
- fillNames( _xContainer, _eType, sImageId, nullptr );
- rTreeView.make_sorted();
+ rTreeView.make_unsorted();
+ fillNames( _xContainer, _eType, sImageId, nullptr );
+ rTreeView.make_sorted();
- rTreeView.unselect_all();
- }
- setDetailPage(*m_aLists[_eType]);
+ rTreeView.unselect_all();
}
+ setDetailPage(*m_aLists[_eType]);
}
void OAppDetailPageHelper::setDetailPage(DBTreeViewBase& rTreeView)