diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-25 19:22:21 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-25 19:22:21 +0000 |
commit | 9163b4ff5779f2abc03855542448f5a01d5f23e4 (patch) | |
tree | f76a4ade049110ef239a7ade162f5acc894dacd0 /Source/SPHistoryController.m | |
parent | 9a4fe782c03bc0c42030b9344fd4f54e494d88b4 (diff) | |
download | sequelpro-9163b4ff5779f2abc03855542448f5a01d5f23e4.tar.gz sequelpro-9163b4ff5779f2abc03855542448f5a01d5f23e4.tar.bz2 sequelpro-9163b4ff5779f2abc03855542448f5a01d5f23e4.zip |
Add support for the triggers view in the history controller.
Diffstat (limited to 'Source/SPHistoryController.m')
-rw-r--r-- | Source/SPHistoryController.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m index dd302969..2fbf18b5 100644 --- a/Source/SPHistoryController.m +++ b/Source/SPHistoryController.m @@ -156,6 +156,7 @@ NSUInteger theView = NSNotFound; NSString *viewName = [[[theDocument valueForKey:@"tableTabView"] selectedTabViewItem] identifier]; + if ([viewName isEqualToString:@"source"]) { theView = SPHistoryViewStructure; } else if ([viewName isEqualToString:@"content"]) { @@ -167,6 +168,9 @@ } else if ([viewName isEqualToString:@"relations"]) { theView = SPHistoryViewRelations; } + else if ([viewName isEqualToString:@"triggers"]) { + theView = SPHistoryViewTriggers; + } return theView; } @@ -375,6 +379,9 @@ case SPHistoryViewRelations: [theDocument viewRelations:self]; break; + case SPTriggersViewMode: + [theDocument viewTriggers:self]; + break; } if ([self currentlySelectedView] != [[historyEntry objectForKey:@"view"] integerValue]) { return [self abortEntryLoadWithPool:loadPool]; |