mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:20:38 +00:00
Fix bug #14008
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21858 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d623cd8d42
commit
d4996ae825
2 changed files with 20 additions and 18 deletions
|
@ -3678,26 +3678,23 @@ resetCursorRectsForView(NSView *theView)
|
|||
if (_f.menu_exclude != flag)
|
||||
{
|
||||
_f.menu_exclude = flag;
|
||||
if (_f.has_opened == YES)
|
||||
if (flag == YES)
|
||||
{
|
||||
if (_f.menu_exclude == NO)
|
||||
{
|
||||
BOOL isFileName;
|
||||
NSString *aString;
|
||||
|
||||
aString = [NSString stringWithFormat: @"%@ -- %@",
|
||||
[_representedFilename lastPathComponent],
|
||||
[_representedFilename stringByDeletingLastPathComponent]];
|
||||
isFileName = [_windowTitle isEqual: aString];
|
||||
[NSApp removeWindowsItem: self];
|
||||
}
|
||||
else if (_f.has_opened == YES && flag == NO)
|
||||
{
|
||||
BOOL isFileName;
|
||||
NSString *aString;
|
||||
|
||||
aString = [NSString stringWithFormat: @"%@ -- %@",
|
||||
[_representedFilename lastPathComponent],
|
||||
[_representedFilename stringByDeletingLastPathComponent]];
|
||||
isFileName = [_windowTitle isEqual: aString];
|
||||
|
||||
[NSApp addWindowsItem: self
|
||||
title: _windowTitle
|
||||
filename: isFileName];
|
||||
}
|
||||
else
|
||||
{
|
||||
[NSApp removeWindowsItem: self];
|
||||
}
|
||||
[NSApp addWindowsItem: self
|
||||
title: _windowTitle
|
||||
filename: isFileName];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue