Mercurial > octave-libtiff
changeset 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 | ef6378f8e420 |
children | f426dd9750a3 |
files | libgui/src/m-editor/file-editor.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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