git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34108 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-04-09 19:38:28 +00:00
parent 84be7c89b3
commit b81526bd8d

View File

@ -1768,8 +1768,10 @@ void GuiView::openDocument(string const & fname)
from_utf8(fullname.absFilename())));
return;
}
// if the file doesn't exist, let the user create one
if (!fullname.exists()) {
// if the file doesn't exist and isn't already open (bug 6645),
// let the user create one
if (!fullname.exists() && !theBufferList().exists(fullname)) {
// the user specifically chose this name. Believe him.
Buffer * const b = newFile(filename, string(), true);
if (b)