mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-18 00:21:22 +00:00
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:
parent
7ece56461a
commit
f44e640e8b
3 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue