From fda19c565d92ca8cd5454e7122efa9580522af89 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Sat, 27 Apr 2013 13:57:41 +0700 Subject: [PATCH] Only clear find status string for non-folder search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I find myself often closing folder search results and later re-opening (via ⇧⌘F) which would previously have the status string cleared, yet the results still showing. Status should probably be stored together with the folder search results, so when toggling between document and folder search, the status string would follow as well. --- Frameworks/Find/src/FindWindowController.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frameworks/Find/src/FindWindowController.mm b/Frameworks/Find/src/FindWindowController.mm index a207edf5..e2dbfeba 100644 --- a/Frameworks/Find/src/FindWindowController.mm +++ b/Frameworks/Find/src/FindWindowController.mm @@ -494,7 +494,8 @@ static NSProgressIndicator* OakCreateProgressIndicator () if([self isWindowLoaded] && ![self.window isVisible]) { self.showsResultsOutlineView = self.folderSearch; - self.statusString = @""; + if(!self.folderSearch) + self.statusString = @""; } BOOL isVisibleAndKey = [self isWindowLoaded] && [self.window isVisible] && [self.window isKeyWindow];