From 2e1b7c6971006816783ff79a30ffa015ce76a081 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 3 Nov 2021 12:10:40 +0300 Subject: [PATCH] [bos #26444] Fix pb with Import dialog --- src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp b/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp index e911b9821..6cad00013 100644 --- a/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp +++ b/src/ParametersPlugin/ParametersPlugin_WidgetParamsMgr.cpp @@ -701,11 +701,9 @@ void ParametersPlugin_WidgetParamsMgr::onImport() { std::string aWinText("Select txt file"); std::string aFileType("Text files (*.txt);;All files (*.*)"); - QFlags aOption = {QFileDialog::ExistingFile}; QString aQPath = QFileDialog::getOpenFileName(nullptr, aWinText.c_str(), "", - aFileType.c_str(), nullptr, - aOption); + aFileType.c_str()); if (aQPath.size() == 0) return; -- 2.39.2