mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
097dfd647e
commit
254a3f9650
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user