Don't change pref view to the current pref view.

This commit is contained in:
Mitchell Livingston 2006-08-15 00:02:23 +00:00
parent 5f6b154c1e
commit 20bcc5101b
1 changed files with 4 additions and 1 deletions

View File

@ -810,6 +810,9 @@
{
NSWindow * window = [self window];
if ([window contentView] == view)
return;
NSRect windowRect = [window frame];
int difference = [view frame].size.height - [[window contentView] frame].size.height;
windowRect.origin.y -= difference;
@ -817,8 +820,8 @@
[window setTitle: [fToolbar selectedItemIdentifier]];
[window setContentView: view];
[view setHidden: YES];
[window setContentView: view];
[window setFrame: windowRect display: YES animate: YES];
[view setHidden: NO];
}