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
This commit is contained in:
Sergii Stoian 2003-04-14 09:45:24 +00:00
parent 42689ac827
commit aa6861d4fe

View file

@ -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"];