[Libreoffice-commits] core.git: dbaccess/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 11 10:20:06 UTC 2021


 dbaccess/source/ui/app/AppDetailPageHelper.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2e415a90958bb00f460dccb303bc22853244292b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jun 11 09:42:21 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 11 12:19:23 2021 +0200

    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 at redhat.com>

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;


More information about the Libreoffice-commits mailing list