aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-05-10 01:24:34 +0200
committerMax <post@wickenrode.com>2015-05-10 01:48:44 +0200
commit0f11cb74639d17a2fe512ed81d67ccf33601b605 (patch)
treea5a8a24ce11070e3ded9ad0a31422de79a486442 /Source/SPConnectionControllerDelegate.m
parent7dbcadc2c0523dc3c3bcc0a8cd7ceea9f44fc655 (diff)
downloadsequelpro-0f11cb74639d17a2fe512ed81d67ccf33601b605.tar.gz
sequelpro-0f11cb74639d17a2fe512ed81d67ccf33601b605.tar.bz2
sequelpro-0f11cb74639d17a2fe512ed81d67ccf33601b605.zip
* Fix an exception that would occur if a user tried to export favorites when no favorites are selected
* Select "Quick Connect" after deleting a favorite
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index f0813292..f2a57e53 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -656,7 +656,7 @@ static NSString *SPQuickConnectImageWhite = @"quick-connect-icon-white.pdf";
// Favorites export
if (action == @selector(exportFavorites:)) {
- if ([[favoritesRoot allChildLeafs] count] == 0) {
+ if ([[favoritesRoot allChildLeafs] count] == 0 || selectedRows == 0) {
return NO;
}
else if (selectedRows == 1) {