From: vsr Date: Wed, 3 Nov 2021 09:10:40 +0000 (+0300) Subject: [bos #26444] Fix pb with Import dialog X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e1b7c6971006816783ff79a30ffa015ce76a081;p=modules%2Fshaper.git [bos #26444] Fix pb with Import dialog --- 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;