summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-11-07 12:35:47 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-11-07 14:53:08 +0100
commit518df6a3bd6aa251dc4ad30ab3d04545513ae5c6 (patch)
treed97ff82f4e6848d0b7e197066380a38797abc5d4 /sfx2/source
parent45daaf225ac626f06e876c0a0a6672a1653425b3 (diff)
make this a more straight forward yes/no question
instead of an ok/cancel, and default to no Change-Id: If86ca1b29d0dd91018fdc8edd6482a6d9ef5c0e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159068 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/appl/openuriexternally.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/appl/openuriexternally.cxx b/sfx2/source/appl/openuriexternally.cxx
index 680c2796bafa..bdf8d72766cc 100644
--- a/sfx2/source/appl/openuriexternally.cxx
+++ b/sfx2/source/appl/openuriexternally.cxx
@@ -94,10 +94,11 @@ IMPL_LINK_NOARG(URITools, onOpenURI, Timer*, void)
SolarMutexGuard g;
std::unique_ptr<weld::MessageDialog> eb(
Application::CreateMessageDialog(
- mpDialogParent, VclMessageType::Warning, VclButtonsType::OkCancel,
+ mpDialogParent, VclMessageType::Warning, VclButtonsType::YesNo,
SfxResId(STR_DANGEROUS_TO_OPEN)));
eb->set_primary_text(eb->get_primary_text().replaceFirst("$(ARG1)", INetURLObject::decode(msURI, INetURLObject::DecodeMechanism::Unambiguous)));
- if (eb->run() == RET_OK) {
+ eb->set_default_response(RET_NO);
+ if (eb->run() == RET_YES) {
flags = 0;
continue;
}