From 2cb0a37af5a4fb7fd8ef42e03e48f5330f4bbf4c Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Sun, 25 Jan 2009 15:14:57 +0000 Subject: [PATCH] Make a document the active window if it already exists --- PBRepositoryDocumentController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PBRepositoryDocumentController.m b/PBRepositoryDocumentController.m index 1ab7cad..4b7519c 100644 --- a/PBRepositoryDocumentController.m +++ b/PBRepositoryDocumentController.m @@ -37,10 +37,12 @@ if (!document) { if (!(document = [[PBGitRepository alloc] initWithURL:url])) - return NO; + return nil; [self addDocument:document]; } + else + [document showWindows]; return document; }