diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-11 09:42:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-11 12:19:23 +0200 |
commit | 2e415a90958bb00f460dccb303bc22853244292b (patch) | |
tree | 82a208ec3a27a0b80f3669e4614f7e2624e5c40b /dbaccess | |
parent | 36b33c50bd620a0879bf5c8b29de3ac2dada19d0 (diff) |
Related: tdf#139447 DBTreeViewBase ctor takes a bool if its a sqltype or not
Change-Id: I7924dfb3dc15e34fae93b435e1a9e76f3da29463
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117037
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index cf4d16204bba..18767cc46a51 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -672,7 +672,8 @@ void OAppDetailPageHelper::fillNames( const Reference< XNameAccess >& _xContaine std::unique_ptr<DBTreeViewBase> OAppDetailPageHelper::createSimpleTree(const OString& rHelpId, ElementType eType) { - std::unique_ptr<DBTreeViewBase> xTreeView(new DBTreeView(m_xBox.get(), eType)); + const bool bSQLType = eType == E_TABLE || eType == E_QUERY; + std::unique_ptr<DBTreeViewBase> xTreeView(new DBTreeView(m_xBox.get(), bSQLType)); xTreeView->GetWidget().set_help_id(rHelpId); setupTree(*xTreeView); return xTreeView; |