aboutsummaryrefslogtreecommitdiffstats
path: root/TableDocument.m
diff options
context:
space:
mode:
authorabhibeckert <abhi@abhibeckert.com>2008-04-05 10:11:48 +0000
committerabhibeckert <abhi@abhibeckert.com>2008-04-05 10:11:48 +0000
commit86d5c76f4afb01a69cef734632c5a8671fe4edf9 (patch)
treeedc614f85266b724d17b7e2e2970fd6de2517769 /TableDocument.m
parent9b5ac7d5073e71e4fc78ee21ba46ad3b593a3ccc (diff)
downloadsequelpro-86d5c76f4afb01a69cef734632c5a8671fe4edf9.tar.gz
sequelpro-86d5c76f4afb01a69cef734632c5a8671fe4edf9.tar.bz2
sequelpro-86d5c76f4afb01a69cef734632c5a8671fe4edf9.zip
#3 rename project
Diffstat (limited to 'TableDocument.m')
-rw-r--r--TableDocument.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/TableDocument.m b/TableDocument.m
index 32c53fcf..0beb77c4 100644
--- a/TableDocument.m
+++ b/TableDocument.m
@@ -258,6 +258,9 @@ reused when user hits the close button of the variablseSheet or of the createTab
// } else if ( [favoritesButton indexOfSelectedItem] == 2 ) {
// [favoritesButton selectItemWithTitle:selectedFavorite];
} else {*/
+ if ([[prefs objectForKey:@"favorites"] count] == 0)
+ return;
+
NSDictionary *favorite = [[prefs objectForKey:@"favorites"] objectAtIndex:[favoritesController selectionIndex]];
NSString *name = [favorite objectForKey:@"name"];
NSString *host = [favorite objectForKey:@"host"];