summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-18 10:01:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-18 12:18:10 +0200
commitf1a458a508cd300117338f9005bff82a923c4a60 (patch)
tree8462ce831ddca5668b3ca128ee3e950d1c5cd7a7 /dbaccess/source
parent15e75a08a237ea372170b3ef826e9efae4323a56 (diff)
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@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx6
1 files changed, 3 insertions, 3 deletions
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)