Salome HOME
Fix for input file-name in the export-dialog which contains "_brep" or so in the...
authormpv <mpv@opencascade.com>
Thu, 5 Sep 2019 12:10:58 +0000 (15:10 +0300)
committermpv <mpv@opencascade.com>
Thu, 5 Sep 2019 12:11:13 +0000 (15:11 +0300)
src/ModuleBase/ModuleBase_WidgetFileSelector.cpp

index 531b7fa80f6e8da55c8fb52adf872256d72639ed..7191889876c70c5b4b58ceb8083e761ea6b35781 100644 (file)
@@ -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;
     }