diff libgui/src/m-editor/file-editor-interface.h @ 23488:52a74f14345c

restore last editor session not before octave is ready * file-editor-interface.h: restore_session is now a public virtual method * file-editor.cc (construct): do not restore last session when editor is created * file-editor.h: restore_session now public, not private * main-window.cc (handle_octave_ready): restore last editor session when octave is ready, because now all function required for collection the autocompletion information are available
author Torsten <mttl@mailbox.org>
date Fri, 12 May 2017 12:51:23 +0200
parents cd4e1ee28716
children 387be1a6c3dc
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-interface.h	Thu May 11 17:50:49 2017 -0400
+++ b/libgui/src/m-editor/file-editor-interface.h	Fri May 12 12:51:23 2017 +0200
@@ -25,6 +25,7 @@
 
 #include <QMenu>
 #include <QToolBar>
+#include <QSettings>
 #include "octave-dock-widget.h"
 
 class file_editor_interface : public octave_dock_widget
@@ -64,6 +65,8 @@
 
   virtual void empty_script (bool, bool) = 0;
 
+  virtual void restore_session (QSettings *) = 0;
+
   virtual void enable_menu_shortcuts (bool enable) = 0;
 
 public slots: