Workaround for what looks like a Qt crash when closing the app with a floating preview.

This commit is contained in:
Leonardo Zide
2020-12-26 18:16:01 -08:00
parent 24c9335c7f
commit 2ccdc85f00
+3
View File
@@ -950,6 +950,9 @@ void lcMainWindow::closeEvent(QCloseEvent* Event)
Settings.endGroup();
gApplication->SaveTabLayout();
delete mPreviewWidget;
mPreviewWidget = nullptr;
}
else
Event->ignore();