summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-20 16:24:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-21 10:13:49 +0100
commite2b3b0b36558c719795644bdfa2853db5a8d6db7 (patch)
treeadcd27be8bd28a85a4efe445376047f5caa3c908 /dbaccess/source
parent520058bbe9735da18a24986c6e0db59fc2c04415 (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/+/109720 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source')
-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 67ae3cac0f6d..5bbfe7b298ef 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