Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfdaa54
)
Fix for input file-name in the export-dialog which contains "_brep" or so in the...
author
mpv
<mpv@opencascade.com>
Thu, 5 Sep 2019 12:10:58 +0000
(15:10 +0300)
committer
mpv
<mpv@opencascade.com>
Thu, 5 Sep 2019 12:11:13 +0000
(15:11 +0300)
src/ModuleBase/ModuleBase_WidgetFileSelector.cpp
patch
|
blob
|
history
diff --git
a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp
b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp
index 531b7fa80f6e8da55c8fb52adf872256d72639ed..7191889876c70c5b4b58ceb8083e761ea6b35781 100644
(file)
--- 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;
}