diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-22 23:36:15 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-22 23:36:15 +0000 |
commit | c11169058366ca679789bc82cf1b3ca8ed496967 (patch) | |
tree | e2f34bd6888ac59554b9c6df5532265d8b230c76 /Source/TableDocument.m | |
parent | 0d39a10771ae048d49d413ac1baf1d8f485190e0 (diff) | |
download | sequelpro-c11169058366ca679789bc82cf1b3ca8ed496967.tar.gz sequelpro-c11169058366ca679789bc82cf1b3ca8ed496967.tar.bz2 sequelpro-c11169058366ca679789bc82cf1b3ca8ed496967.zip |
• implemented chance to reset AUTO_INCREMENT of the PRIMARY KEY field in Table Info Pane via Advanced popup button and sheet (not yet optimal GUI solution)
• SPAlertSheets
- ensure that this sheet becomes the keyWindow
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 1565a477..67d30f71 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3059,7 +3059,8 @@ [tableTabView selectTabViewItemAtIndex:3]; [mainToolbar setSelectedItemIdentifier:SPMainToolbarTableInfo]; [spHistoryControllerInstance updateHistoryEntries]; - + [tableWindow makeFirstResponder:[extendedTableInfoInstance valueForKeyPath:@"tableCreateSyntaxTextView"]]; + [prefs setInteger:SPTableInfoViewMode forKey:SPLastViewMode]; } @@ -3614,7 +3615,9 @@ - (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet usingRect:(NSRect)rect { // Locate the sheet "Reset Auto Increment" just centered beneath the chosen index row - if([[sheet title] isEqualToString:@"Reset Auto Increment"]) { + // if Structure Pane is active + if([tableTabView indexOfTabViewItem:[tableTabView selectedTabViewItem]] == 0 + && [[sheet title] isEqualToString:@"Reset Auto Increment"]) { id it = [tableSourceInstance valueForKeyPath:@"indexView"]; NSRect mwrect = [[NSApp mainWindow] frame]; |