diff libgui/src/m-editor/file-editor.h @ 29715:82e45c11da7d

fix auto completion in default empty script of GUI editor (bug #60689) * file-editor.cc (file_editor): initialize new data member m_editor_ready storing whether the editor is ready after startup; (empty_script): set ready flag at startup, return on non-startup calls if editor still not ready; (handle_visibility): just return if editor is not yet ready; * file-editor.h new data member m_editor_ready
author Torsten Lilge <ttl-octave@mailbox.org>
date Sun, 30 May 2021 14:42:36 +0200
parents 7b4b7e2a524d
children d4d83344d653
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h	Sun May 30 13:57:11 2021 +0200
+++ b/libgui/src/m-editor/file-editor.h	Sun May 30 14:42:36 2021 +0200
@@ -476,6 +476,7 @@
     bool m_closing_canceled;
     bool m_closed;
     bool m_no_focus;
+    bool m_editor_ready;
 
     enum { MaxMRUFiles = 10 };
     QMenu *m_mru_file_menu;