aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-07 23:45:02 +0000
committerrowanbeentje <rowan@beent.je>2010-03-07 23:45:02 +0000
commit2938fe935e88af318090cbe463a338ce69d758ea (patch)
tree679dc28e6aa74facfdc658e5600b9530f228c18e /Source/SPConnectionController.m
parentbd6f166e4e4a119ef439b31478c0f19959753074 (diff)
downloadsequelpro-2938fe935e88af318090cbe463a338ce69d758ea.tar.gz
sequelpro-2938fe935e88af318090cbe463a338ce69d758ea.tar.bz2
sequelpro-2938fe935e88af318090cbe463a338ce69d758ea.zip
- Fix exception on duplication of table source rows that haven't been saved yet; this addresses http://log.sequelpro.com/view/23
- Clean up fix in r1859
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index b3096954..956312c1 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -504,7 +504,7 @@
[prefsController showWindow:self];
[prefsController displayFavoritePreferences:self];
- if ([favoritesTable selectedRow] != -1) [prefsController selectFavoriteAtIndex:([favoritesTable selectedRow] - 1)];
+ if ([favoritesTable numberOfSelectedRows]) [prefsController selectFavoriteAtIndex:([favoritesTable selectedRow] - 1)];
}
/**