aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-31 14:01:18 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-31 14:01:18 +0000
commit9915b358dc414995bfb454781750d99d3cf36117 (patch)
tree3bcd8c973660ba377e0cd6448877fa91e7992eba /Source
parent6ab16708e84f0da9dbc26821c88e0c277d71c58e (diff)
downloadsequelpro-9915b358dc414995bfb454781750d99d3cf36117.tar.gz
sequelpro-9915b358dc414995bfb454781750d99d3cf36117.tar.bz2
sequelpro-9915b358dc414995bfb454781750d99d3cf36117.zip
If the user is viewing the triggers table and then switches to either a proc or function disable all interface controls.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableTriggers.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPTableTriggers.m b/Source/SPTableTriggers.m
index 6e8d6873..5c4f13ad 100644
--- a/Source/SPTableTriggers.m
+++ b/Source/SPTableTriggers.m
@@ -217,6 +217,15 @@
[labelTextField setStringValue:NSLocalizedString(@"This version of MySQL does not support triggers. Support for triggers was added in MySQL 5.0.2", @"triggers not supported label")];
}
+
+ // If a proc or function is selected disable everything.
+ if (([tablesListInstance tableType] == SPTableTypeProc) || ([tablesListInstance tableType] == SPTableTypeFunc)) {
+ [addTriggerButton setEnabled:NO];
+ [refreshTriggersButton setEnabled:NO];
+ [triggersTableView setEnabled:NO];
+
+ [labelTextField setStringValue:@""];
+ }
}
#pragma mark -