aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-07 23:06:48 +0000
committerrowanbeentje <rowan@beent.je>2010-03-07 23:06:48 +0000
commitbd6f166e4e4a119ef439b31478c0f19959753074 (patch)
tree29f3e00c9aae734553303346f1dc5f4afd023874
parentbac0cd2fd1623d2b8cd91a26dce17c01b7f9f06f (diff)
downloadsequelpro-bd6f166e4e4a119ef439b31478c0f19959753074.tar.gz
sequelpro-bd6f166e4e4a119ef439b31478c0f19959753074.tar.bz2
sequelpro-bd6f166e4e4a119ef439b31478c0f19959753074.zip
- When editing favourites from the connection screen, fix an exception when no selection is active. This addresses http://log.sequelpro.com/view/14
-rw-r--r--Source/SPConnectionController.m2
1 files changed, 1 insertions, 1 deletions
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)];
}
/**