mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 08:44:01 +00:00
Fix bug #6645.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34108 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
84be7c89b3
commit
b81526bd8d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user