Mercurial > octave
diff libgui/src/m-editor/file-editor.cc @ 27835:8b514b304be8
fix multiple editor find dialogs
* file_editor.cc (find_create): close an existing dialog before opening a new one
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Sun, 15 Dec 2019 00:23:29 +0100 |
parents | fa0582694fda |
children | 28d7ec92bae6 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc Sat Dec 14 22:41:20 2019 +0100 +++ b/libgui/src/m-editor/file-editor.cc Sun Dec 15 00:23:29 2019 +0100 @@ -824,6 +824,9 @@ // This methos creates the find dialog void file_editor::find_create () { + if (m_find_dialog) + m_find_dialog->close (); + if (isFloating ()) m_find_dialog = new find_dialog (m_octave_qobj, this, this); else