commit 50b99f810f7912888e051a6d0c080c0d1d6056fe
Author: Richard Kimberly Heck <[email protected]>
Date:   Sun Jan 10 00:43:01 2021 -0500

    Fix bug #3205.
    
    Allows external edit of non-existent files.
---
 src/Format.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/Format.cpp b/src/Format.cpp
index aa4e724..7128e2a 100644
--- a/src/Format.cpp
+++ b/src/Format.cpp
@@ -720,10 +720,9 @@ bool Formats::view(Buffer const & buffer, FileName const & 
filename,
 bool Formats::edit(Buffer const & buffer, FileName const & filename,
                         string const & format_name) const
 {
-       if (filename.empty() || !filename.exists()) {
-               Alert::error(_("Cannot edit file"),
-                       bformat(_("File does not exist: %1$s"),
-                               from_utf8(filename.absFileName())));
+       if (filename.empty()) {
+               Alert::error(_("No Filename"),
+                       _("No filename was provided!"));
                return false;
        }
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to