Mercurial > hg > octave-nkf
changeset 17941:9799a996b2c1
* file-editor.cc (request_open_file): new edit tab when file name is empty
author | Torsten <ttl@justmail.de> |
---|---|
date | Sat, 16 Nov 2013 20:38:34 +0100 |
parents | b3e4ee8f4d6d |
children | 0b71746689dc |
files | libgui/src/m-editor/file-editor.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -274,8 +274,9 @@ if (openFileName.isEmpty ()) { - // ?? Not sure this will happen. This routine isn't even called - // if the user hasn't selected a file. + // This happens if edit is calles without an argument + // Open eitor with empty edit area instead (as new file would do) + request_new_file (""); } else {