From 1740ed5e0e765ebd8676733243eb3eaa81f95df1 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 26 12月 2023 17:32:13 +0800 Subject: [PATCH] Fix window visibility inconsistency --- src/core/contexts/abstractwindowcontext.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/core/contexts/abstractwindowcontext.cpp b/src/core/contexts/abstractwindowcontext.cpp index dc0dc38..2fdada5 100644 --- a/src/core/contexts/abstractwindowcontext.cpp +++ b/src/core/contexts/abstractwindowcontext.cpp @@ -211,6 +211,10 @@ } case RaiseWindowHook: { + if (!m_windowHandle) + return; + + m_delegate->setWindowVisible(m_host, true); Qt::WindowStates state = m_delegate->getWindowState(m_host); if (state & Qt::WindowMinimized) { m_delegate->setWindowState(m_host, state & ~Qt::WindowMinimized); -- Gitblit v1.9.1