vcl/jsdialog/executor.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 719184cfc844562b498d76d606163dd51b8738b4 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Mon Mar 15 16:23:48 2021 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Tue Mar 16 21:30:27 2021 +0100 jsdialog: simplify unselect for treeview Change-Id: Iaadd8122d735103d89e4acb65bef1ca8c1ad2e1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112532 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx index aa71178a6605..16096c6dcf01 100644 --- a/vcl/jsdialog/executor.cxx +++ b/vcl/jsdialog/executor.cxx @@ -243,9 +243,7 @@ bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rDat OString nRowString = OUStringToOString(rData["data"], RTL_TEXTENCODING_ASCII_US); - std::unique_ptr<weld::TreeIter> itSelected(pTreeView->make_iterator()); - pTreeView->get_selected(itSelected.get()); - pTreeView->unselect(*itSelected); + pTreeView->unselect_all(); int nAbsPos = std::atoi(nRowString.getStr()); @@ -262,7 +260,7 @@ bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rDat = OUStringToOString(rData["data"], RTL_TEXTENCODING_ASCII_US); int nRow = std::atoi(nRowString.getStr()); - pTreeView->unselect(pTreeView->get_selected_index()); + pTreeView->unselect_all(); pTreeView->select(nRow); pTreeView->set_cursor(nRow); LOKTrigger::trigger_changed(*pTreeView); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits