diff options
author | Max <post@wickenrode.com> | 2015-06-12 00:01:01 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-06-17 11:53:08 +0200 |
commit | 3d8accc866c35c41717188f933d77f48c708a69f (patch) | |
tree | 3088c9f164f0eec86c62cb6f1351ad3e601e156b /Source/SPTableContentDelegate.m | |
parent | f12f9ce2853145ddcede5e4aef5511f9380d740f (diff) | |
download | sequelpro-3d8accc866c35c41717188f933d77f48c708a69f.tar.gz sequelpro-3d8accc866c35c41717188f933d77f48c708a69f.tar.bz2 sequelpro-3d8accc866c35c41717188f933d77f48c708a69f.zip |
Fix a popular exception when a user tried to edit a field with a lost connection and then chose "disconnect" when Sequel Pro asks to reconnect (attempt at #2137)
Diffstat (limited to 'Source/SPTableContentDelegate.m')
-rw-r--r-- | Source/SPTableContentDelegate.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableContentDelegate.m b/Source/SPTableContentDelegate.m index 4d7bbb04..07c355b9 100644 --- a/Source/SPTableContentDelegate.m +++ b/Source/SPTableContentDelegate.m @@ -239,7 +239,7 @@ // issue that the table has no primary key NSString *wherePart = [NSString stringWithString:[self argumentForRow:[tableContentView selectedRow]]]; - if ([wherePart length] == 0) return NO; + if (![wherePart length]) return NO; // If the selected cell hasn't been loaded, load it. if ([[tableValues cellDataAtRow:rowIndex column:[[tableColumn identifier] integerValue]] isSPNotLoaded]) { |