Merge pull request #2326 from Cacodemon345/patch-79

qt: Force the renderer to exit at close time
This commit is contained in:
Miran Grča
2022-05-04 23:11:28 +02:00
committed by GitHub

View File

@@ -524,6 +524,7 @@ void MainWindow::closeEvent(QCloseEvent *event) {
ui->stackedWidget->mouse_exit_func();
ui->stackedWidget->switchRenderer(RendererStack::Renderer::Software);
QApplication::processEvents();
event->accept();
}