Mercurial > hg > octave-nkf
changeset 20119:bb1629e15afe
cancel run action when saving unnamed file was canceled (bug #44434)
* file-editor-tab.cc (run_file): check for success of saving an unamed file
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 06 Mar 2015 08:26:01 +0100 |
parents | 06979876af7d |
children | 2b5cbea8f442 |
files | libgui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -708,7 +708,11 @@ return; if (_edit_area->isModified () | ! valid_file_name ()) - save_file (_file_name); // save file dialog + { + save_file (_file_name); // save file dialog + if (! valid_file_name ()) + return; // still invalid file name: "save as" was cancelled + } QFileInfo info (_file_name); emit run_file_signal (info);