summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-11-17 21:40:54 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2022-11-21 12:36:50 +0100
commit5762aa5c0efb75e8b7713b4c2ee8bd9300fc06cf (patch)
tree20362d6d6ab5feb3ab214efa12555a7c4fd9216a /sc
parent58ae6705deccb614f33d20bfa4b2ab0923d426e1 (diff)
jsdialog: enable Delete content dialog
Dialog had unused m_xBtnOk which has defined standard response in .ui file - no need to bind anything in the code. Change-Id: Ie743485bb30a03b82a87dc69015a704e14c39384 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142903 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142993 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/delcodlg.hxx1
-rw-r--r--sc/source/ui/miscdlgs/delcodlg.cxx1
2 files changed, 0 insertions, 2 deletions
diff --git a/sc/source/ui/inc/delcodlg.hxx b/sc/source/ui/inc/delcodlg.hxx
index c23deed4fcc6..7c49a79f9d33 100644
--- a/sc/source/ui/inc/delcodlg.hxx
+++ b/sc/source/ui/inc/delcodlg.hxx
@@ -35,7 +35,6 @@ private:
std::unique_ptr<weld::CheckButton> m_xBtnDelNotes;
std::unique_ptr<weld::CheckButton> m_xBtnDelAttrs;
std::unique_ptr<weld::CheckButton> m_xBtnDelObjects;
- std::unique_ptr<weld::Button> m_xBtnOk;
static bool bPreviousAllCheck;
static InsertDeleteFlags nPreviousChecks;
diff --git a/sc/source/ui/miscdlgs/delcodlg.cxx b/sc/source/ui/miscdlgs/delcodlg.cxx
index 9d804c252419..56334ba9ca9c 100644
--- a/sc/source/ui/miscdlgs/delcodlg.cxx
+++ b/sc/source/ui/miscdlgs/delcodlg.cxx
@@ -37,7 +37,6 @@ ScDeleteContentsDlg::ScDeleteContentsDlg(weld::Window* pParent)
, m_xBtnDelNotes(m_xBuilder->weld_check_button("comments"))
, m_xBtnDelAttrs(m_xBuilder->weld_check_button("formats"))
, m_xBtnDelObjects(m_xBuilder->weld_check_button("objects"))
- , m_xBtnOk(m_xBuilder->weld_button("ok"))
{
m_xBtnDelAll->set_active( ScDeleteContentsDlg::bPreviousAllCheck );
m_xBtnDelStrings->set_active( bool(InsertDeleteFlags::STRING & ScDeleteContentsDlg::nPreviousChecks) );