diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-13 07:05:02 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-13 07:05:02 +0000 |
commit | ce7c466d1da266b51411a57a03540256e3048249 (patch) | |
tree | b1e70f0a0891f2026feadb9daa164e6666f18462 /Source/SPTableStructure.m | |
parent | 3439b0edd8fb4a9b7dbe51697a0a9533dbfac2f6 (diff) | |
download | sequelpro-ce7c466d1da266b51411a57a03540256e3048249.tar.gz sequelpro-ce7c466d1da266b51411a57a03540256e3048249.tar.bz2 sequelpro-ce7c466d1da266b51411a57a03540256e3048249.zip |
• fixed issue for showing the optimized field type; it can return NULL; if so display nothing found message
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r-- | Source/SPTableStructure.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index 83513b21..c6e4d7f7 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -432,9 +432,9 @@ if([result count]) type = [[result objectAtIndex:0] objectForKey:@"Optimal_fieldtype"]; - if(!type || ![type length]) { + if(!type || [type isKindOfClass:[NSNull class]] || ![type length]) type = NSLocalizedString(@"No optimized field type found.", @"no optimized field type found. message"); - } + [[NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Optimized type for field '%@'", @"Optimized type for field %@"), [[tableFields objectAtIndex:[tableSourceView selectedRow]] objectForKey:@"name"]] defaultButton:@"OK" alternateButton:nil |