]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
NPAL19730 EDF 700 ALL : Dump study filename verification too restrictive
authordmv <dmv@opencascade.com>
Mon, 19 May 2008 07:39:23 +0000 (07:39 +0000)
committerdmv <dmv@opencascade.com>
Mon, 19 May 2008 07:39:23 +0000 (07:39 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index 894ca64fd287e0aeaeb829adcbbf0b618a2c2ad9..62e7e8386eda6a46af5a5bea1e4da7a6536fbcf1 100644 (file)
@@ -700,8 +700,10 @@ class DumpStudyFileValidator : public SUIT_FileValidator
 
 bool DumpStudyFileValidator::canSave(const QString& file)
 {
-  // if file name is not correct...
-  if ( file.find( QRegExp("[-!?#*&]") ) != -1 ) {
+  QFileInfo fi( file );
+  QString name = fi.fileName(); 
+  
+  if ( name.find( QRegExp("[-!?#*&]") ) != -1 ) {
     SUIT_MessageBox::error1 ( parent(),
                              QObject::tr("WRN_WARNING"),
                              QObject::tr("WRN_FILE_NAME_BAD"),