From 06f3a5c4965e67b1a289c7876f19e6231fd1880b Mon Sep 17 00:00:00 2001 From: Ian Bush <bush@ill.fr> Date: Wed, 18 Jul 2018 16:45:12 +0200 Subject: [PATCH] Refs #22518 Use native file dialogues --- .../workbench/workbench/widgets/plotselector/view.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qt/applications/workbench/workbench/widgets/plotselector/view.py b/qt/applications/workbench/workbench/widgets/plotselector/view.py index a7b9a293306..a7795f87078 100644 --- a/qt/applications/workbench/workbench/widgets/plotselector/view.py +++ b/qt/applications/workbench/workbench/widgets/plotselector/view.py @@ -591,8 +591,7 @@ class PlotSelectorView(QWidget): """ # Returns a tuple containing the filename and extension absolute_path = QFileDialog.getSaveFileName(caption='Select filename for exported plot', - filter='*{}'.format(extension), - options=QFileDialog.DontUseNativeDialog) + filter='*{}'.format(extension)) return absolute_path[0] def get_directory_name_for_saving(self): @@ -601,9 +600,9 @@ class PlotSelectorView(QWidget): :return : The path to the directory """ # Note that the native dialog does not always show the files - # in the directory, hence using the Qt dialog - directory = QFileDialog.getExistingDirectory(caption='Select folder for exported plots', - options=QFileDialog.DontUseNativeDialog) + # in the directory on Linux, but using the non-native dialog + # is not very pleasant on Windows or Mac + directory = QFileDialog.getExistingDirectory(caption='Select folder for exported plots') return directory -- GitLab