Stop Find window showing an NSSavePanel on ⌘S

This commit is contained in:
David Howden
2013-08-21 09:30:44 +10:00
committed by Allan Odgaard
parent 2022fab80c
commit 1faaf77d99

View File

@@ -430,6 +430,8 @@ OAK_DEBUG_VAR(Find_FolderSearch);
{
if(anItem.action == @selector(saveAllDocuments:))
return self.hasPerformedReplacement && !self.hasPerformedSave;
else if(anItem.action == @selector(saveDocument:) || anItem.action == @selector(saveDocumentAs:))
return NO;
return [super validateUserInterfaceItem:anItem];
}