mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
Code for saving when closing prefs window is no longer a delegate method.
This commit is contained in:
parent
8a9e593121
commit
251a05c305
2 changed files with 3 additions and 4 deletions
|
@ -77,9 +77,7 @@
|
|||
fDefaults = [NSUserDefaults standardUserDefaults];
|
||||
fHandle = handle;
|
||||
|
||||
NSWindow * window = [self window];
|
||||
[window setDelegate: window];
|
||||
[window update]; //make sure nib is loaded right away
|
||||
[[self window] update]; //make sure nib is loaded right away
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
|
|
@ -33,9 +33,10 @@
|
|||
[self close];
|
||||
}
|
||||
|
||||
- (void) windowWillClose: (NSNotification *) notification
|
||||
- (void) close
|
||||
{
|
||||
[self makeFirstResponder: nil]; //essentially saves changes on window close
|
||||
[super close];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue