Fix #6496, patch from Vincent.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33450 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-02-12 14:23:50 +00:00
parent 3788adf6ce
commit 70e12ff55d

View File

@ -3494,7 +3494,7 @@ bool Buffer::loadLyXFile(FileName const & s)
// InsetInfo needs to know if file is under VCS
lyxvc().file_found_hook(s);
if (readFileHelper(s)) {
setReadonly(!s.isWritable());
d->read_only = !s.isWritable();
return true;
}
}