From: mpv Date: Thu, 5 Sep 2019 12:10:58 +0000 (+0300) Subject: Fix for input file-name in the export-dialog which contains "_brep" or so in the... X-Git-Tag: VEDF2019Lot4~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=90b0e1bea4c25e93519b87ac1415106c26d8a69d;p=modules%2Fshaper.git Fix for input file-name in the export-dialog which contains "_brep" or so in the name: it did not add ".brep" in the property panel widget. --- diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp index 531b7fa80..719188987 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp @@ -246,7 +246,7 @@ QString ModuleBase_WidgetFileSelector::applyExtension(const QString& theFileName bool hasExtension = false; QStringList anExtensions = filterToExtensions(theFilter); foreach(const QString& anExtension, anExtensions) { - if (theFileName.endsWith(anExtension.section(".", 1, 1), Qt::CaseInsensitive)) { + if (theFileName.endsWith(QString(".") + anExtension.section(".", 1, 1), Qt::CaseInsensitive)) { hasExtension = true; break; }