[Libreoffice-commits] core.git: dbaccess/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 18 10:18:57 UTC 2020
dbaccess/source/ui/browser/unodatbr.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit f1a458a508cd300117338f9005bff82a923c4a60
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Aug 18 10:01:15 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 18 12:18:10 2020 +0200
we want the child of the node, not the toplevel child
Change-Id: I22be4c4670422ab88e6ebcf9edc21e34db29a0a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100900
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 64528dfba415..fe4b836e8fd5 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -2983,13 +2983,13 @@ void SbaTableQueryBrowser::closeConnection(weld::TreeIter& rDSEntry, bool _bDisp
}
// collapse the query/table container
- std::unique_ptr<weld::TreeIter> xContainers(rTreeView.make_iterator());
- if (rTreeView.get_iter_first(*xContainers))
+ std::unique_ptr<weld::TreeIter> xContainers(rTreeView.make_iterator(&rDSEntry));
+ if (rTreeView.iter_children(*xContainers))
{
do
{
std::unique_ptr<weld::TreeIter> xElements(rTreeView.make_iterator(xContainers.get()));
- if (rTreeView.get_iter_first(*xElements))
+ if (rTreeView.iter_children(*xElements))
{
rTreeView.collapse_row(*xContainers);
// and delete their children (they are connection-relative)
More information about the Libreoffice-commits
mailing list