From 41cd73703e6bb9e5590f4a7d57aa2b97576a60fe Mon Sep 17 00:00:00 2001 From: daboe01 Date: Tue, 19 Jan 2021 09:03:37 +0100 Subject: [PATCH] Fixed: sharedApplication was instantiating the wrong class in subclasses of CPApplication (#2968) Previously, CPApplication was hard-coded. This PR makes sharedApplication instantiating the CPApp of the correct class. --- AppKit/CPApplication.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j index 0a1c5fd05..d8a781c60 100644 --- a/AppKit/CPApplication.j +++ b/AppKit/CPApplication.j @@ -132,7 +132,7 @@ var CPApplicationDelegate_applicationShouldTerminate_ = 1 << 0, + (CPApplication)sharedApplication { if (!CPApp) - CPApp = [[CPApplication alloc] init]; + CPApp = [[self alloc] init]; return CPApp; }