mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
4e364577e3
commit
9302bd119f
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user