]> git.lyx.org Git - lyx.git/commitdiff
Mark new files dirty. Otherwise, you can't save them, and maybe you want
authorRichard Heck <rgheck@comcast.net>
Fri, 9 Apr 2010 19:03:46 +0000 (19:03 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 9 Apr 2010 19:03:46 +0000 (19:03 +0000)
to do that right away.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34107 a592a061-630c-0410-9148-cb99ea01b6c8

src/buffer_funcs.cpp

index c3f41c18ae024b93becfa50efb9b2ec370c40339..a54fc5277913fc8be50cd008f610cdcb0c5aac54 100644 (file)
@@ -148,6 +148,7 @@ Buffer * newFile(string const & filename, string const & templatename,
 
        b->setReadonly(false);
        b->setFullyLoaded(true);
+       b->markDirty();
 
        return b;
 }