From 0339e9e5e19fd4fe65113e1a819826109b7e4727 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: ćšć, 28 12æ 2023 23:13:33 +0800 Subject: [PATCH] minor tweaks --- 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