If the mainWindow tries to become main again, just return early.

This commit is contained in:
Ross Boucher committed 2010-03-01 18:07:38 -08:00
1 parent 67f35c7b74
commit 01aec1f78e
1 file changed
+3 -3
+3 -3
View File
@@ -1799,13 +1799,13 @@ CPTexturedBackgroundWindowMask
*/
- (void)makeMainWindow
{
if (![self canBecomeMainWindow])
if (CPApp._mainWindow === self || ![self canBecomeMainWindow])
return;
[CPApp._mainWindow resignMainWindow];
CPApp._mainWindow = self;
[self becomeMainWindow];
}