X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_FileValidator.cxx;h=b2a3785e846610cfe1fc4cb194817109dd526a62;hp=cf17da47412ecd9470c22cd4428033999e7bf313;hb=e85e13ee2a8e2484050471ff8e4dea298abe481a;hpb=a17b36970bc61da1d664453c615754997c925b18 diff --git a/src/SMESHGUI/SMESHGUI_FileValidator.cxx b/src/SMESHGUI/SMESHGUI_FileValidator.cxx old mode 100755 new mode 100644 index cf17da474..b2a3785e8 --- a/src/SMESHGUI/SMESHGUI_FileValidator.cxx +++ b/src/SMESHGUI/SMESHGUI_FileValidator.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -72,3 +72,10 @@ bool SMESHGUI_FileValidator::canSave( const QString& fileName, bool checkPermiss } return true; } + +bool SMESHGUI_FileValidator::isOverwrite( const QString& fileName) const +{ + if ( QFile::exists( fileName ) ) + return myIsOverwrite; + return true; +}