From: dmv Date: Wed, 13 Aug 2008 13:59:53 +0000 (+0000) Subject: Bug IPAL18008 :QT4 PORTING: Impossible to load script with "-" in the name X-Git-Tag: TG_TRIPOLI_qt4_porting~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08064fbfe4feecaf9dfdc2bad313853f288a7d72;p=modules%2Fgui.git Bug IPAL18008 :QT4 PORTING: Impossible to load script with "-" in the name --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index b74ed59fb..3dc0710f0 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -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.*/