From 70e12ff55df4ec1a6af1f55c564d8314f5b28e78 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 12 Feb 2010 14:23:50 +0000 Subject: [PATCH] Fix #6496, patch from Vincent. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33450 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index a5bef3a732..55e0f72560 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; } }