diff options
author | rowanbeentje <rowan@beent.je> | 2009-07-09 00:15:44 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-07-09 00:15:44 +0000 |
commit | 26675cbe2b899dc1aa6613f8345097eca1d92a94 (patch) | |
tree | 075be54042f5682e2901e134b4334d824a5e0e82 /Source/TableDocument.m | |
parent | 3c85831742d01fd4dbf35b819038900018bb3a5d (diff) | |
download | sequelpro-26675cbe2b899dc1aa6613f8345097eca1d92a94.tar.gz sequelpro-26675cbe2b899dc1aa6613f8345097eca1d92a94.tar.bz2 sequelpro-26675cbe2b899dc1aa6613f8345097eca1d92a94.zip |
- Commit the second part of r995 (oops), addressing database selection issues
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 1df0698a..42d1309d 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -147,7 +147,7 @@ } // Update the selected database if appropriate - if (![[connectionController database] isEqualToString:@""]) { + if ([connectionController database] && ![[connectionController database] isEqualToString:@""]) { if (selectedDatabase) [selectedDatabase release], selectedDatabase = nil; selectedDatabase = [[connectionController database] retain]; } |