From bacd3545e8b6a638ecb3da321c60a4236b68cba6 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 15 Apr 2025 00:11:57 -0700 Subject: [PATCH] Qt: Fix Qt 5 build --- src/platform/qt/Window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index da1c80847..3fafb1d7d 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -584,7 +584,7 @@ std::function Window::openNamedTView(QPointer* name, bool keepalive, return [=]() { if (!*name) { *name = new T(arg...); - connect(this, &Window::shutdown, name->get(), &QWidget::close); + connect(this, &Window::shutdown, name->data(), &QWidget::close); if (!keepalive) { (*name)->setAttribute(Qt::WA_DeleteOnClose); } @@ -600,8 +600,8 @@ std::function Window::openNamedControllerTView(QPointer* name, bool k return [=]() { if (!*name) { *name = new T(m_controller, arg...); - connect(m_controller.get(), &CoreController::stopping, name->get(), &QWidget::close); - connect(this, &Window::shutdown, name->get(), &QWidget::close); + connect(m_controller.get(), &CoreController::stopping, name->data(), &QWidget::close); + connect(this, &Window::shutdown, name->data(), &QWidget::close); if (!keepalive) { (*name)->setAttribute(Qt::WA_DeleteOnClose); }