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>
This commit is contained in:
Caolán McNamara 2017-11-21 13:18:07 +00:00
parent 6191f701e8
commit 6e3f7cd2d5
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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;