summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-10-31 18:55:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-01 21:05:00 +0100
commitd3a9db6310204247a3bd8f23a984c5a04afbeef1 (patch)
tree1281a59dd42891545845d428dfff6a12bc89ca00 /sw/source/uibase
parent63076928d41d95d6c0bc86580ba8a5a985b1f415 (diff)
use officecfg for ShowLinkWarningDialog
Change-Id: I92a42eb2ff48bff4e635f1a37a25c8ecb9ac1347 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105153 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/uiview/view2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index b7021abc7cd7..4b83a3d00e95 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -30,6 +30,7 @@
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <com/sun/star/linguistic2/XDictionary.hpp>
+#include <officecfg/Office/Common.hxx>
#include <SwCapObjType.hxx>
#include <SwStyleNameMapper.hxx>
#include <docary.hxx>
@@ -39,7 +40,6 @@
#include <swundo.hxx>
#include <svl/PasswordHelper.hxx>
#include <svl/urihelper.hxx>
-#include <svtools/miscopt.hxx>
#include <sfx2/passwd.hxx>
#include <sfx2/sfxdlg.hxx>
#include <sfx2/filedlghelper.hxx>
@@ -450,7 +450,7 @@ bool SwView::InsertGraphicDlg( SfxRequest& rReq )
}
// really store as link only?
- if( bAsLink && SvtMiscOptions().ShowLinkWarningDialog() )
+ if( bAsLink && officecfg::Office::Common::Misc::ShowLinkWarningDialog::get() )
{
SvxLinkWarningDialog aWarnDlg(GetFrameWeld(), pFileDlg->GetPath());
if (aWarnDlg.run() != RET_OK)