Revision: 26166
          http://sourceforge.net/p/bibdesk/svn/26166
Author:   hofman
Date:     2021-06-07 22:25:27 +0000 (Mon, 07 Jun 2021)
Log Message:
-----------
Remove child windows, such as complex string editor, from macro sheet when 
dismissing

Modified Paths:
--------------
    trunk/bibdesk/BDSKMacroWindowController.m

Modified: trunk/bibdesk/BDSKMacroWindowController.m
===================================================================
--- trunk/bibdesk/BDSKMacroWindowController.m   2021-06-07 22:17:16 UTC (rev 
26165)
+++ trunk/bibdesk/BDSKMacroWindowController.m   2021-06-07 22:25:27 UTC (rev 
26166)
@@ -326,6 +326,10 @@
 - (IBAction)closeAction:(id)sender{
        if ([[self window] isSheet]) {
                [self windowWillClose:nil];
+        for (NSWindow *childWindow in [[self window] childWindows]) {
+            [[self window] removeChildWindow:childWindow];
+            [childWindow orderOut:nil];
+        }
         [self dismiss:sender];
        } else {
                [[self window] performClose:sender];

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to