diff options
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 6 |
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) |