Fixed bug #11448. Fixed bug with editor on close.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@20516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2005-01-03 12:30:47 +00:00
parent 7ece56461a
commit f44e640e8b
3 changed files with 14 additions and 9 deletions

View file

@ -20,6 +20,13 @@
* Modules/ApplicationProject/Resources/Main.gorm: Connect delegate to
AppController (bug #11478).
* Library/PCProjectEditor.m:
(editorForFile:categoryPath:windowed:): Call orderFrontEditorForFile:
to show already opened file (bug #11448).
* Library/PCEditor.m:
(_createEditorViewWithFrame:): Remove return of autoreleased ivar.
2004-12-24 Serg Stoyan <stoyan255@ukr.net>
* "Build Tool" setting from Project Inspector was moved to PC

View file

@ -138,7 +138,7 @@
[[ev textContainer] setContainerSize:NSMakeSize(fr.size.width, 1e7)];
return AUTORELEASE(ev);
return ev;
}
@end
@ -283,7 +283,7 @@
- (void)dealloc
{
#ifdef DEVELOPMENT
NSLog(@"PCEditor: dealloc");
NSLog(@"PCEditor: %@ dealloc", _path);
#endif
[[NSNotificationCenter defaultCenter] removeObserver:self];

View file

@ -257,10 +257,8 @@ NSString *PCEditorDidResignActiveNotification =
}
[editor setWindowed:yn];
if (yn)
{
[editor show];
}
[self orderFrontEditorForFile:path];
return editor;
}
@ -486,10 +484,10 @@ NSString *PCEditorDidResignActiveNotification =
}
else
{
[[project projectBrowser] reloadLastColumnAndNotify:YES];
[[project projectWindow] makeFirstResponder:scrollView];
[componentView setContentView:scrollView];
[[project projectWindow] makeFirstResponder:scrollView];
[[project projectBrowser] reloadLastColumnAndNotify:YES];
}
}