From c9261fbd7019264e8543507e3afaec63d55595a2 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周三, 06 12月 2023 10:58:07 +0800
Subject: [PATCH] fix stupid code

---
 src/core/contexts/qtwindowcontext.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp
index a9740f1..732ecf1 100644
--- a/src/core/contexts/qtwindowcontext.cpp
+++ b/src/core/contexts/qtwindowcontext.cpp
@@ -40,14 +40,17 @@
 #endif
     }
 
-    QtWindowContext::QtWindowContext(QWindow *window, WindowItemDelegate *delegate)
-        : AbstractWindowContext(window, delegate) {
+    QtWindowContext::QtWindowContext(QObject *host, WindowItemDelegate *delegate)
+        : AbstractWindowContext(host, delegate) {
     }
 
     QtWindowContext::~QtWindowContext() {
     }
 
     bool QtWindowContext::setup() {
+        if (!m_windowHandle) {
+            return false;
+        }
         return false;
     }
 

--
Gitblit v1.9.1