]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug IPAL18008 :QT4 PORTING: Impossible to load script with "-" in the name
authordmv <dmv@opencascade.com>
Wed, 13 Aug 2008 13:59:53 +0000 (13:59 +0000)
committerdmv <dmv@opencascade.com>
Wed, 13 Aug 2008 13:59:53 +0000 (13:59 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index b74ed59fb84d0feaf0aca14dc6addbc7358352d1..3dc0710f08220030ab6735e9bdce66d662870e3d 100644 (file)
@@ -636,10 +636,10 @@ class DumpStudyFileValidator : public SUIT_FileValidator
  public:
   DumpStudyFileValidator( QWidget* parent) : SUIT_FileValidator ( parent ) {};
   virtual ~DumpStudyFileValidator() {};
-  virtual bool canSave( const QString& file );
+  virtual bool canSave( const QString& file, bool permissions );
 };
 
-bool DumpStudyFileValidator::canSave(const QString& file)
+bool DumpStudyFileValidator::canSave(const QString& file, bool permissions)
 {
   QFileInfo fi( file );
   QString name = fi.fileName(); 
@@ -650,7 +650,7 @@ bool DumpStudyFileValidator::canSave(const QString& file)
                               QObject::tr("WRN_FILE_NAME_BAD") );
     return false;
   }
-  return SUIT_FileValidator::canSave( file );
+  return SUIT_FileValidator::canSave( file, permissions);
 }
 
 /*!Private SLOT. On dump study.*/