aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-30 17:12:30 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-30 17:12:30 +0000
commit12b199d998018affa4e358b0d4e26f7cd878f8cd (patch)
tree602d34c4642bfc5df73937468dc60fcf7d422b82
parent78381153755568f86fef8896156ae8b841ef7179 (diff)
downloadsequelpro-12b199d998018affa4e358b0d4e26f7cd878f8cd.tar.gz
sequelpro-12b199d998018affa4e358b0d4e26f7cd878f8cd.tar.bz2
sequelpro-12b199d998018affa4e358b0d4e26f7cd878f8cd.zip
• suppress the display of table cell tooltips if TableDocument isWorking to avoid unstable tooltip status
-rw-r--r--Source/CustomQuery.m2
-rw-r--r--Source/TableContent.m2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 251f19cc..2a93f425 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -1805,7 +1805,7 @@
- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:(SPTextAndLinkCell *)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation
{
- if([[aCell stringValue] length] < 2) return nil;
+ if([[aCell stringValue] length] < 2 || [tableDocumentInstance isWorking]) return nil;
NSImage *image;
diff --git a/Source/TableContent.m b/Source/TableContent.m
index c0814670..e220a4b1 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -2582,7 +2582,7 @@
- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:(SPTextAndLinkCell *)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation
{
- if([[aCell stringValue] length] < 2) return nil;
+ if([[aCell stringValue] length] < 2 || [tableDocumentInstance isWorking]) return nil;
NSImage *image;