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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32786 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-06 02:43:23 +00:00
parent 8f449c7fd3
commit a9fd4f4f95

View File

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