summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-10 13:30:59 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-10 14:54:41 +0200
commitfe66cf8c8048bfd8a4386c0c711bd6912af9ec63 (patch)
tree52bd8db9ed56b7dbd641ad8895d8d59ba38c8f36 /svx/source/dialog
parent7f9a35e6efc4118ecc46fa6f76fc5a812259eea1 (diff)
New Expert Configuration setting to not offer Safe Mode in the UI
/org.openoffice.Office/Common/Misc/OfferSafeMode (default: true), controlling: * "Help - Restart in Safe Mode..." menu entry * "Restart LibreOffice to enter safe mode" checkbox in the "Crash Report" dialog * "To start temporarily with a fresh user profile,..." tip of the day (It does not control the --safe-mode command line argument, though.) Change-Id: I66084448a1ba9427aaafef630187b4bf25219a2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165926 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/crashreportdlg.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/svx/source/dialog/crashreportdlg.cxx b/svx/source/dialog/crashreportdlg.cxx
index aad28436eea3..82ecf8beda5a 100644
--- a/svx/source/dialog/crashreportdlg.cxx
+++ b/svx/source/dialog/crashreportdlg.cxx
@@ -40,8 +40,14 @@ CrashReportDialog::CrashReportDialog(weld::Window* pParent)
{
maLinkTemplate = mxLinkButton->get_uri();
+ auto const offerSafeMode = officecfg::Office::Common::Misc::OfferSafeMode::get();
+ mxCBSafeMode->set_visible(offerSafeMode);
+
auto nWidth = mxEditPreUpload->get_preferred_size().Width();
- nWidth = std::max(nWidth, mxCBSafeMode->get_size_request().Width());
+ if (offerSafeMode)
+ {
+ nWidth = std::max(nWidth, mxCBSafeMode->get_size_request().Width());
+ }
mxEditPreUpload->set_size_request(nWidth, -1);
mxCBSafeMode->set_size_request(nWidth, -1);