summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-20 16:24:25 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2021-01-21 16:19:30 +0100
commitc22c707743814e2fa199a0517b510c12abaebc92 (patch)
tree7b80ddbe66d709162a546e13983e5f827dee0d1f /dbaccess
parentcd7c68f751d8106f3b2177d7b51094f3e11d2f68 (diff)
tdf#139298 New created query doesn't show any row
regression from... commit 5f7cf9ccba25a94c275ec67936dc29f0adb4129a Author: Caolán McNamara <caolanm@redhat.com> Date: Mon Aug 10 19:49:25 2020 +0100 use InterimDBTreeListBox Change-Id: I755879699aa6fcc9b42b5845ae60406794e11cc2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109688 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index b05ad037377f..2496ec8bc2b6 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -1092,14 +1092,14 @@ std::unique_ptr<weld::TreeIter> SbaTableQueryBrowser::getObjectEntry(const OUStr
weld::TreeView& rTreeView = m_pTreeView->GetWidget();
- if (ppDataSourceEntry)
- {
- // (caller wants to have it...)
- *ppDataSourceEntry = rTreeView.make_iterator(xDataSource.get());
- }
-
if (xDataSource)
{
+ if (ppDataSourceEntry)
+ {
+ // (caller wants to have it...)
+ *ppDataSourceEntry = rTreeView.make_iterator(xDataSource.get());
+ }
+
// expand if required so
if (bExpandAncestors)
rTreeView.expand_row(*xDataSource);
@@ -1121,14 +1121,14 @@ std::unique_ptr<weld::TreeIter> SbaTableQueryBrowser::getObjectEntry(const OUStr
}
}
- if (ppContainerEntry)
- {
- // (caller wants to have it...)
- *ppContainerEntry = rTreeView.make_iterator(xCommandType.get());
- }
-
if (xCommandType)
{
+ if (ppContainerEntry)
+ {
+ // (caller wants to have it...)
+ *ppContainerEntry = rTreeView.make_iterator(xCommandType.get());
+ }
+
rTreeView.make_unsorted();
// expand if required so