From 310fb079c75d551bf2a129b69c897905ca83e061 Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Thu, 28 Aug 2014 19:08:14 +0100 Subject: Resolve #1938: In the query console display the database the query was executed in. --- Source/SPQueryConsoleDataSource.m | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Source/SPQueryConsoleDataSource.m') diff --git a/Source/SPQueryConsoleDataSource.m b/Source/SPQueryConsoleDataSource.m index 343f2dcd..eaac2151 100644 --- a/Source/SPQueryConsoleDataSource.m +++ b/Source/SPQueryConsoleDataSource.m @@ -54,8 +54,12 @@ static NSUInteger SPMessageTruncateCharacterLength = 256; { #ifndef SP_CODA NSString *returnValue = nil; + + NSString *identifier = [tableColumn identifier]; + + if (!identifier) return returnValue; - id object = [[messagesVisibleSet objectAtIndex:row] valueForKey:[tableColumn identifier]]; + id object = [[messagesVisibleSet objectAtIndex:row] valueForKey:identifier]; if ([[tableColumn identifier] isEqualToString:SPTableViewDateColumnID]) { @@ -68,7 +72,9 @@ static NSUInteger SPMessageTruncateCharacterLength = 256; returnValue = object; } - + + if (!returnValue) return returnValue; + NSMutableDictionary *stringAtributes = nil; if (consoleFont) { -- cgit v1.2.3