summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-26 10:40:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-26 14:57:19 +0100
commit90ad0740a22bc50c478ad743eef1f30b2fc1b226 (patch)
treeb74069e63786948a7c18d314872f40a0cd75a38e /dbaccess
parent24a071a08655536b7ec10b2a77792c8ec72a5d1d (diff)
tdf#130915 auto-select first entry when treeview filled
Change-Id: I3311e2e6f013de7adca5b473609b1dd64187a58f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89530 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/misc/WNameMatch.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbaccess/source/ui/misc/WNameMatch.cxx b/dbaccess/source/ui/misc/WNameMatch.cxx
index fbc0675b4ef0..a48ad89ef231 100644
--- a/dbaccess/source/ui/misc/WNameMatch.cxx
+++ b/dbaccess/source/ui/misc/WNameMatch.cxx
@@ -327,6 +327,9 @@ void OWizNameMatching::FillListBox(weld::TreeView& rTreeView, const ODatabaseExp
rTreeView.set_id(nRow, OUString::number(reinterpret_cast<sal_Int64>(elem->second)));
++nRow;
}
+
+ if (rTreeView.n_children())
+ rTreeView.select(0);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */