diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-09 20:40:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-10 10:26:44 +0200 |
commit | 5f6596bd125aa8309875d970318f18d4d9704705 (patch) | |
tree | 0ba15147173a58eddda54936f7e63d364c0502c0 /dbaccess | |
parent | a7683a16e98def4198e1f74a93fecdaacbf639e7 (diff) |
Resolves: tdf#151441 queries don't show any content
Change-Id: I66ec14c7cb8816bc2181cc25f7d7f31fdc7d1604
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141146
Tested-by: Jenkins
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/control/dbtreelistbox.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index 24c9a83d2190..be900d650f63 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -187,8 +187,16 @@ TreeListBox::~TreeListBox() std::unique_ptr<weld::TreeIter> TreeListBox::GetEntryPosByName(std::u16string_view aName, const weld::TreeIter* pStart, const IEntryFilter* _pFilter) const { auto xEntry(m_xTreeView->make_iterator(pStart)); - if (!pStart && !m_xTreeView->get_iter_first(*xEntry)) - return nullptr; + if (pStart) + { + if (!m_xTreeView->iter_children(*xEntry)) + return nullptr; + } + else + { + if (!m_xTreeView->get_iter_first(*xEntry)) + return nullptr; + } do { |