From: nds Date: Tue, 11 Apr 2017 15:04:50 +0000 (+0300) Subject: Issue #2055 Import feature : the file type selector doesn't work X-Git-Tag: V_2.7.0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e61bdf3647f8e32c09da2805caf349f0ffddbf1;p=modules%2Fshaper.git Issue #2055 Import feature : the file type selector doesn't work --- diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp index 534c7c8c4..14b5be9a1 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp @@ -114,9 +114,13 @@ void ModuleBase_WidgetFileSelector::onPathSelectionBtn() ? myDefaultPath : QFileInfo(myPathField->text()).absolutePath(); QString aFilter = filterString(); + // use Option prohibited native dialog using to have both lower/upper extensions of files + // satisfied to dialog filter on Linux(Calibre) Issue #2055 QString aFileName = (myType == WFS_SAVE) - ? QFileDialog::getSaveFileName(this, myTitle, aDefaultPath, aFilter, &mySelectedFilter) - : QFileDialog::getOpenFileName(this, myTitle, aDefaultPath, aFilter, &mySelectedFilter); + ? QFileDialog::getSaveFileName(this, myTitle, aDefaultPath, aFilter, &mySelectedFilter, + QFileDialog::DontUseNativeDialog) + : QFileDialog::getOpenFileName(this, myTitle, aDefaultPath, aFilter, &mySelectedFilter, + QFileDialog::DontUseNativeDialog); if (!aFileName.isEmpty()) { if (myType == WFS_SAVE) aFileName = applyExtension(aFileName, mySelectedFilter);