From 90b0e1bea4c25e93519b87ac1415106c26d8a69d Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 5 Sep 2019 15:10:58 +0300 Subject: [PATCH] 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. --- src/ModuleBase/ModuleBase_WidgetFileSelector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2