compile fix following undo/redo mixup. Sorry.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22124 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-13 10:43:29 +00:00
parent 4e364577e3
commit 9302bd119f
2 changed files with 3 additions and 3 deletions

View File

@ -152,12 +152,12 @@ bool FileName::renameTo(FileName const & name) const
bool FileName::changePermission(unsigned long int mode) const
{
if (!fname.isWritable()) {
if (!isWritable()) {
LYXERR0("File " << *this << " is not writable!");
return false;
}
if (!chmod(fname, mode)) {
if (!chmod(*this, mode)) {
LYXERR0("File " << *this << " cannot be changed to " << mode << " mode!");
return false;
}

View File

@ -104,7 +104,7 @@ public:
/// change mode of pointed file.
/// \retrun true on success.
bool changeMode(unsigned long int mode) const;
bool changePermission(unsigned long int mode) const;
/// remove directory and all contents, returns true on success
bool destroyDirectory() const;