From 6b6b54d5b5a42d55d74825732e6606d1e7f982db Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: Sun, 17 Dec 2023 18:01:49 +0800 Subject: [PATCH] fix macos crash --- src/core/utils_mac.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/utils_mac.mm b/src/core/utils_mac.mm index a17c5b89..40956cad 100644 --- a/src/core/utils_mac.mm +++ b/src/core/utils_mac.mm @@ -247,6 +247,7 @@ explicit NSWindowProxy(QWindow *qtWindow, NSWindow *macWindow, QObject *parent = { instances.remove(nswindow); if (instances.count() <= 0) { + restoreImplementations(); windowClass = nil; } nswindow = nil;