diff options
author | Max <post@wickenrode.com> | 2015-06-16 21:28:35 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-06-17 11:54:47 +0200 |
commit | 33539b983532720eede12768fc5a32c6dabb3ca8 (patch) | |
tree | f3b275ed5d12e217981d3b8671fb994deab2304f /Source/SPNarrowDownCompletion.m | |
parent | 8febe85e1cb92fa7f4fc073607bd8b08f850b446 (diff) | |
download | sequelpro-33539b983532720eede12768fc5a32c6dabb3ca8.tar.gz sequelpro-33539b983532720eede12768fc5a32c6dabb3ca8.tar.bz2 sequelpro-33539b983532720eede12768fc5a32c6dabb3ca8.zip |
The export code caused an exception when no database was selected but the filename contained the database token (fixes #2145)
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index b9dba0e4..c2158299 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -441,7 +441,7 @@ } else { if([[filtered objectAtIndex:rowIndex] objectForKey:@"list"]) { NSMutableString *tt = [NSMutableString string]; - [tt appendString:([[filtered objectAtIndex:rowIndex] objectForKey:@"type"]) ? [[filtered objectAtIndex:rowIndex] objectForKey:@"type"] : @""]; + [tt appendStringOrNil:[[filtered objectAtIndex:rowIndex] objectForKey:@"type"]]; [tt appendString:@"\n"]; [tt appendString:NSLocalizedString(@"Type Declaration:", @"type declaration header")]; [tt appendString:@"\n"]; |