summaryrefslogtreecommitdiff
path: root/vcl/jsdialog
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-06-09 10:57:41 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-07-20 11:48:06 +0200
commit002cd0c0c7a80a5ad488e40d3601b8e9d6aa5b19 (patch)
treedc4dd7874af4541ab878a392a596f2a7dcee3e56 /vcl/jsdialog
parenta2cdfcbcf503b8eecd97877b1ecd24276e2b3534 (diff)
jsdialog: don't send update if not changed checkbox state
to avoid infinite updates in find & replace dialog Change-Id: If9d26cec66f2b4475c89ba394b9597bc23881341 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116886 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119197 Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r--vcl/jsdialog/jsdialogbuilder.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index 3b7f84ca6b95..fd9d152ae6ed 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -1083,8 +1083,10 @@ JSCheckButton::JSCheckButton(JSDialogSender* pSender, ::CheckBox* pCheckBox,
void JSCheckButton::set_active(bool active)
{
+ bool bWasActive = get_active();
SalInstanceCheckButton::set_active(active);
- sendUpdate();
+ if (bWasActive != active)
+ sendUpdate();
}
JSDrawingArea::JSDrawingArea(JSDialogSender* pSender, VclDrawingArea* pDrawingArea,