diff libgui/src/m-editor/file-editor.cc @ 19639:d258070914ef gui-release

open file directly without edit command when editing a function from editor * file-editor-tab.cc (handle_context_menu_edit): append .m to file name if necessary, emit new signal to editor for the file open request * file-editor-tab.h: new signal requesting to open a file * file-editor.cc (add_file_editor_tab): connect new request-open-signal to the already existing slot for opening a file
author Torsten <ttl@justmail.de>
date Thu, 22 Jan 2015 06:52:37 +0100
parents b6bd9159c1c9
children 3156773fcc80
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc	Tue Jan 20 22:19:18 2015 +0100
+++ b/libgui/src/m-editor/file-editor.cc	Thu Jan 22 06:52:37 2015 +0100
@@ -1615,6 +1615,9 @@
   connect (f, SIGNAL (execute_command_in_terminal_signal (const QString&)),
            main_win (), SLOT (execute_command_in_terminal (const QString&)));
 
+  connect (f, SIGNAL (request_open_file (const QString&)),
+           this, SLOT (request_open_file (const QString&)));
+
   connect (f, SIGNAL (set_global_edit_shortcuts_signal (bool)),
            main_win (), SLOT (set_global_edit_shortcuts (bool)));