aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-06 15:37:06 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-06 15:37:06 +0000
commit915a3831525bf3a9350648d82f86dd54ae366292 (patch)
tree4369c8a48d129011ad615960a740f2fb26eb330c /Source/SPConnectionControllerDelegate.m
parent755287031cdc15298155a5dbffe43476801d97b3 (diff)
downloadsequelpro-915a3831525bf3a9350648d82f86dd54ae366292.tar.gz
sequelpro-915a3831525bf3a9350648d82f86dd54ae366292.tar.bz2
sequelpro-915a3831525bf3a9350648d82f86dd54ae366292.zip
Comments.
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 897c86ff..4bff297a 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -30,6 +30,8 @@
#define CELL(cell) (SPTableTextFieldCell *)cell
+static const NSString *SPDatabaseImage = @"database-small";
+
@implementation SPConnectionController (SPConnectionControllerDelegate)
#pragma mark -
@@ -98,7 +100,7 @@
[CELL(cell) setImage:nil];
}
else {
- [CELL(cell) setImage:(![node isGroup]) ? [NSImage imageNamed:@"database-small"] : folderImage];
+ [CELL(cell) setImage:(![node isGroup]) ? [NSImage imageNamed:SPDatabaseImage] : folderImage];
}
}
@@ -277,7 +279,7 @@
if (nameFieldIsEmpty || (!favoriteNameFieldWasTouched && field == socketUserField)) {
[socketNameField setStringValue:[NSString stringWithFormat:@"%@@localhost", [socketUserField stringValue]]];
-
+
// Trigger KVO update
[self setName:[socketNameField stringValue]];