From 11eca30d1b8abf87575bb59ef3f1a7e2478ab21a Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 4 Dec 2009 15:44:51 +0000 Subject: - Fix saving of files or images added to the SPFieldEditor - Fix a couple of memory leaks in the SPFieldEditor - Fix a crash caused by attempted reselection of databases after disconnection if no database was selected --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m') diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m index 07ea4c39..aa5dc842 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m @@ -395,7 +395,7 @@ static BOOL sTruncateLongFieldInLogs = YES; NSString *currentDatabase = nil; // Store the currently selected database and encoding so they can be re-set if reconnection was successful - if (delegate && [delegate respondsToSelector:@selector(onReconnectShouldSelectDatabase:)]) { + if (delegate && [delegate respondsToSelector:@selector(onReconnectShouldSelectDatabase:)] && [delegate onReconnectShouldSelectDatabase:self]) { currentDatabase = [NSString stringWithString:[delegate onReconnectShouldSelectDatabase:self]]; } -- cgit v1.2.3