Mercurial > octave
diff libgui/src/m-editor/file-editor.h @ 27400:7cf857166440
connect signals when creating file_editor_tab in file editor
* file-editor.h, file-editor.cc (file_editor::make_file_editor_tab):
New function. Create file_editor_tab object and connect signals.
(file_editor::add_file_editor_tab): Don't connect signals here.
(file_editor::request_new_file, file_editor::request_open_file):
Use make_file_editor_tab instead of creating object directly with new.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 12 Sep 2019 17:01:34 -0400 |
parents | e449134870fb |
children | da1f59fe04b3 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h Thu Sep 12 13:30:05 2019 -0400 +++ b/libgui/src/m-editor/file-editor.h Thu Sep 12 17:01:34 2019 -0400 @@ -320,6 +320,8 @@ private: + file_editor_tab * make_file_editor_tab (const QString& directory = ""); + bool is_editor_console_tabbed (void); void construct (void); void add_file_editor_tab (file_editor_tab *f, const QString& fn,