[Libreoffice-commits] core.git: vcl/workben

Caolán McNamara caolanm at redhat.com
Tue Nov 21 16:34:25 UTC 2017


 vcl/workben/commonfuzzer.hxx |    1 +
 vcl/workben/fftester.cxx     |    2 ++
 2 files changed, 3 insertions(+)

New commits:
commit 6e3f7cd2d5b4f29987a266de0c897a750e891e6c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 21 13:18:07 2017 +0000

    auto cancel dialogs during file format testing
    
    Change-Id: Iceef2f46759b28c0d3f60d8dcb8f470af78de3f0
    Reviewed-on: https://gerrit.libreoffice.org/45043
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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;


More information about the Libreoffice-commits mailing list