From 6e3f7cd2d5b4f29987a266de0c897a750e891e6c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 21 Nov 2017 13:18:07 +0000 Subject: auto cancel dialogs during file format testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iceef2f46759b28c0d3f60d8dcb8f470af78de3f0 Reviewed-on: https://gerrit.libreoffice.org/45043 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/workben/commonfuzzer.hxx | 1 + vcl/workben/fftester.cxx | 2 ++ 2 files changed, 3 insertions(+) (limited to 'vcl/workben') diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx index f19a5824e028..e8fc91ec4f83 100644 --- a/vcl/workben/commonfuzzer.hxx +++ b/vcl/workben/commonfuzzer.hxx @@ -100,6 +100,7 @@ void CommonInitialize(int *argc, char ***argv) comphelper::setProcessServiceFactory( xServiceManager ); utl::ConfigManager::EnableFuzzing(); InitVCL(); + Application::SetDialogCancelMode( Application::DialogCancelMode::Silent ); //we don't have a de-init, so inside this leak disabled region... //get the font info diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index 5615e171bfe5..87c99203e8f5 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -102,6 +102,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) InitVCL(); + Application::SetDialogCancelMode(Application::DialogCancelMode::Silent); + if (strcmp(argv[2], "wmf") == 0 || strcmp(argv[2], "emf") == 0) { GDIMetaFile aGDIMetaFile; -- cgit