1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +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:
Max Paperno 2017-11-27 07:05:18 -05:00
parent f085f11ea8
commit 0f34bf3850
No known key found for this signature in database
GPG key ID: F5A9DFACA08DD174

View file

@ -562,6 +562,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
g.mainWinGeo(saveGeometry());
g.mainWinState(saveState());
g.tabbedMdi(actTabbedWindows->isChecked());
QApplication::closeAllWindows();
mdiArea->closeAllSubWindows();
if (mdiArea->currentSubWindow()) {
event->ignore();