Revision: 15492
          http://sourceforge.net/p/skim-app/code/15492
Author:   hofman
Date:     2025-06-18 14:40:46 +0000 (Wed, 18 Jun 2025)
Log Message:
-----------
make sure main window controller is created once

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2025-06-18 14:29:27 UTC (rev 15491)
+++ trunk/SKMainDocument.m      2025-06-18 14:40:46 UTC (rev 15492)
@@ -176,9 +176,11 @@
 }
 
 - (void)makeWindowControllers{
-    mainWindowController = [[SKMainWindowController alloc] init];
-    [mainWindowController setShouldCloseDocument:YES];
-    [self addWindowController:mainWindowController];
+    if (mainWindowController == nil) {
+        mainWindowController = [[SKMainWindowController alloc] init];
+        [mainWindowController setShouldCloseDocument:YES];
+        [self addWindowController:mainWindowController];
+    }
 }
 
 - (void)updateChangeCount:(NSDocumentChangeType)change {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to