summaryrefslogtreecommitdiff
path: root/vcl/jsdialog/executor.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-12-07 09:49:01 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2020-12-28 10:50:52 +0100
commit69c72c6069bc297ae00c71bcc3164ce609f44c32 (patch)
tree82ed4ac58f032fb25532dffb24e858b57cbb1352 /vcl/jsdialog/executor.cxx
parent8b71ea32134b2eeff2a69f1113744bc11a14c6b3 (diff)
jsdialog: change selection not merge
Change-Id: Ie76320aef21ca2c94be608ec06726ac0af6a66f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107335 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108392 Tested-by: Jenkins
Diffstat (limited to 'vcl/jsdialog/executor.cxx')
-rw-r--r--vcl/jsdialog/executor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index 0ff259e7bfd4..775879c54f69 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -204,7 +204,9 @@ 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->select(nRow);
+ pTreeView->set_cursor(nRow);
LOKTrigger::trigger_changed(*pTreeView);
LOKTrigger::trigger_row_activated(*pTreeView);
return true;