mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
[Companion] Fix crash when closing main window while model/radio editor is open and cursor is in a field which has editingFinished() event handler.
This commit is contained in:
parent
f085f11ea8
commit
0f34bf3850
1 changed files with 1 additions and 0 deletions
|
@ -562,6 +562,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
||||||
g.mainWinGeo(saveGeometry());
|
g.mainWinGeo(saveGeometry());
|
||||||
g.mainWinState(saveState());
|
g.mainWinState(saveState());
|
||||||
g.tabbedMdi(actTabbedWindows->isChecked());
|
g.tabbedMdi(actTabbedWindows->isChecked());
|
||||||
|
QApplication::closeAllWindows();
|
||||||
mdiArea->closeAllSubWindows();
|
mdiArea->closeAllSubWindows();
|
||||||
if (mdiArea->currentSubWindow()) {
|
if (mdiArea->currentSubWindow()) {
|
||||||
event->ignore();
|
event->ignore();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue