diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-07 13:24:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-04-07 16:54:45 +0200 |
commit | 9e786320a7d2609a9f997b32e31347f2eab0489e (patch) | |
tree | 5cce4899cb316735be546da843b29fb1fe6c6b33 /postprocess | |
parent | 105a9390e02856887ff5cfb6dbf6fe008738ffe1 (diff) |
move using the vcl file dialog in headless mode to the point of creation
instead of setting and unsetting the config option at start and exit
because a document that crashes in headless mode leaves my config
in an unwanted built-in file dialog state.
Change-Id: Ib5fcc5994a08c78bffdf57cb5b252dc469167ba2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150126
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'postprocess')
-rw-r--r-- | postprocess/qa/services.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/postprocess/qa/services.cxx b/postprocess/qa/services.cxx index 94bd76031ff4..c332402e390d 100644 --- a/postprocess/qa/services.cxx +++ b/postprocess/qa/services.cxx @@ -365,14 +365,10 @@ void Test::createInstance( #endif } else if (name == "com.sun.star.ui.dialogs.FolderPicker") { // FolderPicker is a wrapper returning either a platform-specific or the - // generic OfficeFolderPicker: -#if defined(_WIN32) - expImpl = "com.sun.star.ui.dialogs.Win32FolderPicker"; - expServs = {"com.sun.star.ui.dialogs.SystemFolderPicker"}; -#else + // generic OfficeFolderPicker. In headless mode it is always the + // generic one. expImpl = "com.sun.star.svtools.OfficeFolderPicker"; expServs = {"com.sun.star.ui.dialogs.OfficeFolderPicker"}; -#endif } else if (expImpl == "com.sun.star.comp.Calc.SpreadsheetDocument") { expImpl = "ScModelObj"; } else if (expImpl == "com.sun.star.comp.Draw.DrawingDocument" |