Mercurial > hg > octave-nkf
diff libgui/src/main-window.cc @ 18467:2ea741d22554 gui-release
create empty script when editor becomes visible without open files (bug #41347)
* file-editor.cc (empty_script): new function determining whether to create
an empty script or not;
(handle_visibility): reimplemented from octave_dock_widget, calls
empty_script each time the editor becomes visible;
* file-editor.h: new slot handle_visibility, new function empty_script
* file-editor-interface.h: new virtual function empty_script
* main-window.cc (connect_visibility_changed): call empty_script when main
window and all widgets are initialized
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 26 Jan 2014 12:55:21 +0100 |
parents | dfc6ef6ac455 |
children | 888cd8f62c67 |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -1010,6 +1010,9 @@ { foreach (octave_dock_widget *widget, dock_widget_list ()) widget->connect_visibility_changed (); + + // Main window completely shown, determine whether to create an empty script + editor_window->empty_script (true, false); } void