From bd6f166e4e4a119ef439b31478c0f19959753074 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 7 Mar 2010 23:06:48 +0000 Subject: - When editing favourites from the connection screen, fix an exception when no selection is active. This addresses http://log.sequelpro.com/view/14 --- Source/SPConnectionController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 093d294e..b3096954 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -504,7 +504,7 @@ [prefsController showWindow:self]; [prefsController displayFavoritePreferences:self]; - [prefsController selectFavoriteAtIndex:([favoritesTable selectedRow] - 1)]; + if ([favoritesTable selectedRow] != -1) [prefsController selectFavoriteAtIndex:([favoritesTable selectedRow] - 1)]; } /** -- cgit v1.2.3