mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
A compromise suggested by JMarc: We mark the buffer dirty if, but only
if, the filename was not automatically generated. So, if the user chose the filename, we assume she wants to keep the file. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34119 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
287c87cf1f
commit
51fce57c78
@ -146,7 +146,8 @@ Buffer * newFile(string const & filename, string const & templatename,
|
||||
if (!isNamed) {
|
||||
b->setUnnamed();
|
||||
b->setFileName(filename);
|
||||
}
|
||||
} else
|
||||
b->markDirty();
|
||||
|
||||
b->setReadonly(false);
|
||||
b->setFullyLoaded(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user