aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)];
}
/**