From 29a0de3636e3745ebeed2503ffd6e503bf6b80fa Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Fri, 5 Mar 2010 20:09:23 -0800 Subject: [PATCH] Fix document title's not being synced properly. --- AppKit/CPWindow/CPWindow.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index b3275ee6c..e68c33174 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1834,11 +1834,11 @@ CPTexturedBackgroundWindowMask */ - (void)becomeMainWindow { + CPApp._mainWindow = self; + [self _synchronizeMenuBarTitleWithWindowTitle]; [self _synchronizeSaveMenuWithDocumentSaving]; - CPApp._mainWindow = self; - [[CPNotificationCenter defaultCenter] postNotificationName:CPWindowDidBecomeMainNotification object:self];