branch: Fix bug #6433: read-only status is not refreshed when reloading a buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33203 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-24 17:31:20 +00:00
parent 097dfd647e
commit 254a3f9650

View File

@ -1882,6 +1882,8 @@ void LyXFunc::reloadBuffer()
void LyXFunc::reloadBuffer(Buffer * buf)
{
FileName filename = buf->fileName();
// e.g., read-only status could have changed due to version control
filename.refresh();
Buffer const * master = buf->masterBuffer();
bool const is_child = master != buf;
// The user has already confirmed that the changes, if any, should