diff --git a/Source/NSApplication.m b/Source/NSApplication.m index 4272ce981..56825cf66 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -2044,6 +2044,9 @@ image. NSImage *oldImage = [item image]; NSImage *newImage; + if (!([[item target] styleMask] & NSClosableWindowMask)) + return; + if ([[item target] isDocumentEdited]) { newImage = [NSImage imageNamed: @"common_WMCloseBroken"];