summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-12-12 12:16:27 +0100
committerEike Rathke <erack@redhat.com>2020-12-16 23:53:59 +0100
commit1790ed500f3033581ee4a3ef43428d7fda4692cc (patch)
tree59a2df35b7d6971ca9b2c11c6e01d9953362d936 /sc
parentdffcf10aa17b77c64131fa949aef51eb6da2fd48 (diff)
tdf#138822: really undo when clicking Cancel in managing Named Ranges
Change-Id: Ib4d15e7e5287221ea51eb3e20dd1811c97999306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107635 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/namedlg/namedlg.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index 88a115aec4b5..1b76dfafa997 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -459,6 +459,7 @@ IMPL_LINK_NOARG(ScNameDlg, OkBtnHdl, weld::Button&, void)
IMPL_LINK_NOARG(ScNameDlg, CancelBtnHdl, weld::Button&, void)
{
+ mbCloseWithoutUndo = true;
response(RET_CANCEL);
}