gnustep-gui (0.18.0-5) untitled-document-loading.patch

Summary

 Source/NSApplication.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

2010-06-01  Wolfgang Lux  <wolfgang.lux@gmail.com>

	* Source/NSApplication.m (-finishLaunching): Do not attempt to
	open an	untitled document in a document based application that
	does not define an editor type.

--- gnustep-gui-0.18.0.orig/Source/NSApplication.m
+++ gnustep-gui-0.18.0/Source/NSApplication.m
@@ -1143,7 +1143,7 @@
               [_delegate applicationOpenUntitledFile: self];
             }
         }
-      else if ([[sdc documentClassNames] count] > 0)
+      else if ([[sdc documentClassNames] count] > 0 && [sdc defaultType] != nil)
         {
 	  NSError *err = nil;