summaryrefslogtreecommitdiff
path: root/vcl/jsdialog/executor.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-12-06 18:23:32 +0100
committerMiklos Vajna <vmiklos@collabora.com>2022-12-16 19:49:56 +0000
commitcc067789ab7fd67bdd6f6ba8ce53a6580a56d7ff (patch)
tree256a2df35e3c5c3fbdde40f7842147345785af6b /vcl/jsdialog/executor.cxx
parentae438bda3d5a0c9c9f2ed0e71104698bd2d8793d (diff)
jsdialog: enter/leave tab page handlers
(cherry picked from commit 1257c288a0ba03fc69e7bc29fcf05642eb91d150) Change-Id: I2cbc0fc18f716bf214db61f0729d666a1d2d172c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144344 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl/jsdialog/executor.cxx')
-rw-r--r--vcl/jsdialog/executor.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index 51dcca8f5d16..acd0e084ae76 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -91,7 +91,10 @@ bool ExecuteAction(const std::string& nWindowId, const OString& rWidget, StringM
{
sal_Int32 page = o3tl::toInt32(rData["data"]);
+ OString aCurrentPage = pNotebook->get_current_page_ident();
+ LOKTrigger::leave_page(*pNotebook, aCurrentPage);
pNotebook->set_current_page(page);
+ LOKTrigger::enter_page(*pNotebook, pNotebook->get_page_ident(page));
return true;
}