mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 23:30:37 +00:00
Don't remove the window autosave frame for the user defaults on dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12692 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a3f9d4432c
commit
f67c71a580
1 changed files with 12 additions and 2 deletions
|
@ -590,7 +590,14 @@ static NSNotificationCenter *nc = nil;
|
|||
argument: nil];
|
||||
[NSApp removeWindowsItem: self];
|
||||
|
||||
[self setFrameAutosaveName: nil];
|
||||
[windowsLock lock];
|
||||
if (_autosaveName != nil)
|
||||
{
|
||||
[autosaveNames removeObject: _autosaveName];
|
||||
_autosaveName = nil;
|
||||
}
|
||||
[windowsLock unlock];
|
||||
|
||||
if (_counterpart != 0 && (_styleMask & NSMiniWindowMask) == 0)
|
||||
{
|
||||
NSWindow *mini = [NSApp windowWithWindowNumber: _counterpart];
|
||||
|
@ -623,7 +630,10 @@ static NSNotificationCenter *nc = nil;
|
|||
[context _removeDragTypes: nil fromWindow: self];
|
||||
|
||||
if (_gstate)
|
||||
DPSundefineuserobject(context, _gstate);
|
||||
{
|
||||
DPSundefineuserobject(context, _gstate);
|
||||
}
|
||||
|
||||
if (_windowNum)
|
||||
{
|
||||
DPStermwindow(context, _windowNum);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue