fix: better handle Windows shutting down in newer Qt versions (#6368)

This commit is contained in:
pajlada
2025-08-09 11:43:32 +02:00
committed by GitHub
parent f21f1b8781
commit f7042dc542
5 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ Window &WindowManager::createWindow(WindowType type, bool show, QWidget *parent)
{
window->setAttribute(Qt::WA_DeleteOnClose);
QObject::connect(window, &QWidget::destroyed, [this, window] {
QObject::connect(window, &QWidget::destroyed, this, [this, window] {
for (auto it = this->windows_.begin(); it != this->windows_.end();
it++)
{