-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve exiting GUI in Qt6 by fixing crash in variable editor
* octave-qobject.cc (~base_qobject): use deleteLater for main window and delete for dick widgets * variable-editor.h: new class variable with a list of all used dock widgets for the open variables * variable-editor.cc (variable_editor::variable_editor): initialize new class variable with list of current dock widgets; (variable_editor::focusInEvent): search in list of dock widgets instead of using findChildren; (variable_editor::~variable_editor): disconnect destroyed() signals of all variable dock widgets preventing a crash when dock widgets are destroyed after variable editor, no need to delete tool bar here anymore; (variable_editor::edit_variable): add new dock widget to the list (variable_editor::variable_destroyed): search in list of dock widgets instead of using findChildren; (variable_editor::variable_focused): dito
- Loading branch information
1 parent
cd1218d
commit 9917ed4
Showing
3 changed files
with
47 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters