From 523844f584fc06b99c7cce5c5b0a17e9943b40d3 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 17 Oct 2009 18:11:08 +0000 Subject: Add constant for preference key 'AutoConnectToDefault' and replace occurrences of it's use. --- Source/SPAppController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/SPAppController.m') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 3b8cde01..23d410e3 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -397,7 +397,7 @@ // Manually open a new document, setting SPAppController as sender to trigger autoconnection if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"SequelPro connection" error:nil]) { - if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AutoConnectToDefault"]) { + if ([[NSUserDefaults standardUserDefaults] boolForKey:SPAutoConnectToDefault]) { [firstTableDocument setShouldAutomaticallyConnect:YES]; } [[NSDocumentController sharedDocumentController] addDocument:firstTableDocument]; @@ -553,7 +553,7 @@ /* Support for "make new document" */ - (void)insertInOrderedDocuments:(TableDocument *)doc { - if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AutoConnectToDefault"]) + if ([[NSUserDefaults standardUserDefaults] boolForKey:SPAutoConnectToDefault]) [doc setShouldAutomaticallyConnect:YES]; [[NSDocumentController sharedDocumentController] addDocument:doc]; [doc makeWindowControllers]; -- cgit v1.2.3