diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-05-24 09:11:11 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-12-16 17:30:00 +0000 |
commit | 98ee2b5080ac88bd4c09ce330c9baae924d5be16 (patch) | |
tree | 9b2a8c404e317701204b57fef491ebe948aa6286 /sfx2/source/dialog | |
parent | f3f7ea23c4611856f051cb6aeca115c27ef5b1e7 (diff) |
sfx2: LOK: disable the Reset button from tabbed dialogs
The reset functionality seems to be confusing to more
than one user. Their expectation isn't always matching
the functionality, perhaps because it has rough edges(?).
Disabling for LOK to avoid this; users can Cancel
and start over if they wish to do (which is what the
Reset button is supposed to do in effect).
(cherry picked from commit c3c28235cf1f853e644250ba110b2715a270a8b5)
Change-Id: I4a744dd0263ab72a5858746c1f3572e62990a13b
Reviewed-on: https://gerrit.libreoffice.org/83630
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 9b73516c97c2..e25c30baea5b 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -38,6 +38,7 @@ #include <vcl/virdev.hxx> #include <sal/log.hxx> #include <osl/diagnose.h> +#include <comphelper/lok.hxx> #include <sfx2/strings.hrc> #include <helpids.h> @@ -353,6 +354,10 @@ SfxTabDialogController::SfxTabDialogController m_xExampleSet.reset(new SfxItemSet(*m_pSet)); m_pOutSet.reset(new SfxItemSet(*m_pSet->GetPool(), m_pSet->GetRanges())); } + + // The reset functionality seems to be confusing to many; disable in LOK. + if (comphelper::LibreOfficeKit::isActive()) + RemoveResetButton(); } IMPL_LINK_NOARG(SfxTabDialogController, OkHdl, weld::Button&, void) |