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:
Richard Heck 2010-04-12 15:15:35 +00:00
parent 287c87cf1f
commit 51fce57c78

View File

@ -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);