diff libgui/src/m-editor/file-editor-tab.h @ 18300:3a26bb54655e gui-release

warn when saving or executing a file with spaces in its name (bug #41136) * main-window.cc (run_file_in_terminal): check for spaces in the name, show a warning message and execute 'run file' if desired * file-editor-tab.cc (save_file_check_spaces): new function that checks for spaces in a file name and asks if the user wants to chose another file name; (handle_save_file_as_answer_close): use the new function; (handle_save_file_as_answer): use the new function; * file-editor-tab.h: new function save_file_check_spaces
author Torsten <ttl@justmail.de>
date Tue, 14 Jan 2014 20:56:57 +0100
parents f26d527c1a71
children 106da7544504
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h
+++ b/libgui/src/m-editor/file-editor-tab.h
@@ -176,6 +176,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);
 
   void update_lexer ();
   void request_add_breakpoint (int line);