aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-02-22 17:25:16 +0000
committerBibiko <bibiko@eva.mpg.de>2010-02-22 17:25:16 +0000
commit0d39a10771ae048d49d413ac1baf1d8f485190e0 (patch)
tree5aa39da9173d24caa1f8f78c31e8c58905cbddc4 /Source/TableDocument.m
parent6d018a4e2eb0505776092e6f626d70b1ad3d5295 (diff)
downloadsequelpro-0d39a10771ae048d49d413ac1baf1d8f485190e0.tar.gz
sequelpro-0d39a10771ae048d49d413ac1baf1d8f485190e0.tar.bz2
sequelpro-0d39a10771ae048d49d413ac1baf1d8f485190e0.zip
• implemented chance to reset AUTO_INCREMENT of the PRIMARY KEY field in Structure Pane via right-click at the index tableView
- implementation in the Table Info follows soon
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index b8261a8e..1565a477 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -3613,7 +3613,7 @@
- (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet usingRect:(NSRect)rect {
- // Locate the sheet "Reset Auto Increment" just beneath the chosen index row
+ // Locate the sheet "Reset Auto Increment" just centered beneath the chosen index row
if([[sheet title] isEqualToString:@"Reset Auto Increment"]) {
id it = [tableSourceInstance valueForKeyPath:@"indexView"];
@@ -3622,6 +3622,7 @@
NSRect rowrect = [it rectOfRow:[it selectedRow]];
rowrect.size.width = mwrect.size.width - ltrect.size.width;
rowrect.origin.y -= [it rowHeight]/2.0f+2;
+ rowrect.origin.x -= 8;
return [it convertRect:rowrect toView:nil];
} else