aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionHandler.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-10-20 16:11:51 +0000
committerrowanbeentje <rowan@beent.je>2012-10-20 16:11:51 +0000
commit62b310ab2fa911c8b9e1d8b8f71d9186e938b347 (patch)
treeafb9c86f90dd61c17d5d300aa2f8b60fe241c58b /Source/SPConnectionHandler.m
parentef3ff14707741bef3a1968a4d7a1845b5d87d4f1 (diff)
downloadsequelpro-62b310ab2fa911c8b9e1d8b8f71d9186e938b347.tar.gz
sequelpro-62b310ab2fa911c8b9e1d8b8f71d9186e938b347.tar.bz2
sequelpro-62b310ab2fa911c8b9e1d8b8f71d9186e938b347.zip
- Prevent new favourites from being created as a sibling/child of the Quick Connect item if it was selected
- Name a last unnamed connection thread
Diffstat (limited to 'Source/SPConnectionHandler.m')
-rw-r--r--Source/SPConnectionHandler.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m
index 6efdf366..0634df68 100644
--- a/Source/SPConnectionHandler.m
+++ b/Source/SPConnectionHandler.m
@@ -37,6 +37,7 @@
#import "SPKeychain.h"
#import "RegexKitLite.h"
#import "SPCategoryAdditions.h"
+#import "SPThreadAdditions.h"
#import <SPMySQL/SPMySQL.h>
@@ -75,8 +76,8 @@ static NSString *SPLocalhostAddress = @"127.0.0.1";
[connectButton setEnabled:YES];
[connectButton display];
#endif
-
- [NSThread detachNewThreadSelector:@selector(initiateMySQLConnectionInBackground) toTarget:self withObject:nil];
+
+ [NSThread detachNewThreadWithName:@"SPConnectionHandler MySQL connection task" target:self selector:@selector(initiateMySQLConnectionInBackground) object:nil];
}
/**