From b8a1ac5612719b0188f17ec7a6da259b3977df22 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Mon, 27 Apr 2009 21:09:30 +0000 Subject: [PATCH] * Framework/PCProjectManager.m: Remove logic requiring projectWindow to be key in order to save file. This was causing files in tear-off editors to not be saved. This change is in the saveFile method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28260 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ Framework/PCProjectManager.m | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d433633..b9a18b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-04-27 17:09-EDT Gregory John Casamento + + * Framework/PCProjectManager.m: Remove logic requiring projectWindow + to be key in order to save file. This was causing files in + tear-off editors to not be saved. This change is in the saveFile + method. + 2009-04-22 16:31-EDT Gregory John Casamento * Framework/PCProject.m: Changes to make plist output in diff --git a/Framework/PCProjectManager.m b/Framework/PCProjectManager.m index 49e86f9..f336e26 100644 --- a/Framework/PCProjectManager.m +++ b/Framework/PCProjectManager.m @@ -1045,8 +1045,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; - (BOOL)saveFile { - // We have active project and its window is key - if (activeProject && [[activeProject projectWindow] isKeyWindow]) + if (activeProject) { return [[[activeProject projectEditor] activeEditor] saveFile]; }