Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.h @ 18360:770c525a1a2b gui-release
Warn when saving/running a script whose name is not a valid identifier.
* file-editor-tab.h: rename save_file_check_spaces
* file-editor-tab.cc (check_valid_identifier): renamed save_file_check_spaces,
check if valid identifier and adapt message;
(handle_save_file_as_answer, handle_save_file_as_answer_close): use this
function
* main-window.cc (run_file_in_terminal): use the function
author | Julien Bect <julien.bect@supelec.fr> |
---|---|
date | Tue, 21 Jan 2014 18:11:50 +0100 |
parents | 106da7544504 |
children | f01ac1bb8a5d |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h +++ b/libgui/src/m-editor/file-editor-tab.h @@ -180,7 +180,7 @@ bool valid_file_name (const QString& file=QString ()); void save_file (const QString& saveFileName, bool remove_on_success = false); void save_file_as (bool remove_on_success = false); - bool save_file_check_spaces (QString file_name); + bool check_valid_identifier (QString file_name); void update_lexer (); void request_add_breakpoint (int line);