mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
42689ac827
commit
aa6861d4fe
1 changed files with 3 additions and 0 deletions
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue