changeset 25558:2d588bad7d9e

do not set breakpoint if file is unmodified and still unnamed (bug #54231) * file-editor-tab.cc (handle_request_remove_breakpoint): also check for a valid file name before setting a breakpoint via editor
author Torsten <mttl@mailbox.org>
date Sat, 07 Jul 2018 16:29:47 +0200
parents bb779fc2d0db
children 5112f5b33dfd
files libgui/src/m-editor/file-editor-tab.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Sat Jul 07 13:45:16 2018 +0200
+++ b/libgui/src/m-editor/file-editor-tab.cc	Sat Jul 07 16:29:47 2018 +0200
@@ -519,7 +519,7 @@
               handle_request_remove_breakpoint (editor_linenr + 1);
             else
               {
-                if (unchanged_or_saved ())
+                if (unchanged_or_saved () && valid_file_name ())
                   handle_request_add_breakpoint (editor_linenr + 1, "");
               }
           }