[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - dbaccess/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 27 10:57:10 UTC 2020


 dbaccess/source/ui/misc/WNameMatch.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 0ee5a690e03ec4de92e0eb839214e3758d5b004f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Feb 26 10:40:09 2020 +0000
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Thu Feb 27 11:56:38 2020 +0100

    tdf#130915 auto-select first entry when treeview filled
    
    Change-Id: I3311e2e6f013de7adca5b473609b1dd64187a58f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89516
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

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: */


More information about the Libreoffice-commits mailing list