diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-21 13:18:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-21 17:34:02 +0100 |
commit | 6e3f7cd2d5b4f29987a266de0c897a750e891e6c (patch) | |
tree | 029c50ba63496c701c323cd526332531252ab733 /vcl/workben | |
parent | 6191f701e8cbb972acf7f56b0a9a7fcd97a4f377 (diff) |
auto cancel dialogs during file format testing
Change-Id: Iceef2f46759b28c0d3f60d8dcb8f470af78de3f0
Reviewed-on: https://gerrit.libreoffice.org/45043
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/commonfuzzer.hxx | 1 | ||||
-rw-r--r-- | vcl/workben/fftester.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
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; |