From 3eaff626aca6e1db2cfc2563e7f70bafbf6e5f4c Mon Sep 17 00:00:00 2001 From: stoyan Date: Mon, 14 Apr 2003 09:45:24 +0000 Subject: [PATCH] Do not add X image if window has close button git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16461 72102866-910b-0410-8b05-ffd578937521 --- Source/NSApplication.m | 3 +++ 1 file changed, 3 insertions(+) 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"];