diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-06 15:37:06 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-06 15:37:06 +0000 |
commit | 915a3831525bf3a9350648d82f86dd54ae366292 (patch) | |
tree | 4369c8a48d129011ad615960a740f2fb26eb330c /Source/SPConnectionControllerDelegate.m | |
parent | 755287031cdc15298155a5dbffe43476801d97b3 (diff) | |
download | sequelpro-915a3831525bf3a9350648d82f86dd54ae366292.tar.gz sequelpro-915a3831525bf3a9350648d82f86dd54ae366292.tar.bz2 sequelpro-915a3831525bf3a9350648d82f86dd54ae366292.zip |
Comments.
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 6 |
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]]; |