mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
8f449c7fd3
commit
a9fd4f4f95
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user