aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableTriggers.m
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2012-10-05 13:21:27 +0000
committerbamse16 <marius@marius.me.uk>2012-10-05 13:21:27 +0000
commit6f4c53ad6f926ef3bd7598edff5a6a0b3ca80cbf (patch)
tree92e58fb90f50395d36ec13e2af81984496edab52 /Source/SPTableTriggers.m
parent76d7e65ef0447fe421a77ed2f16c19a83afb17f6 (diff)
downloadsequelpro-6f4c53ad6f926ef3bd7598edff5a6a0b3ca80cbf.tar.gz
sequelpro-6f4c53ad6f926ef3bd7598edff5a6a0b3ca80cbf.tar.bz2
sequelpro-6f4c53ad6f926ef3bd7598edff5a6a0b3ca80cbf.zip
Issue 1477: Trigger screen add bug
Diffstat (limited to 'Source/SPTableTriggers.m')
-rw-r--r--Source/SPTableTriggers.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPTableTriggers.m b/Source/SPTableTriggers.m
index 830bf4e7..939ff234 100644
--- a/Source/SPTableTriggers.m
+++ b/Source/SPTableTriggers.m
@@ -116,6 +116,9 @@ static const NSString *SPTriggerSQLMode = @"TriggerSQLMode";
selector:@selector(endDocumentTaskForTab:)
name:SPDocumentTaskEndNotification
object:tableDocumentInstance];
+
+ // TODO: tick this in XIB. I don't want to bork the .XIBs again (Marius)
+ triggerStatementTextView.drawsBackground = YES;
}
/**
@@ -281,6 +284,9 @@ static const NSString *SPTriggerSQLMode = @"TriggerSQLMode";
// Check whether table editing is permitted (necessary as some actions - eg table double-click - bypass validation)
if ([tableDocumentInstance isWorking] || [tablesListInstance tableType] != SPTableTypeTable) return;
+ [triggerNameTextField setStringValue:@""];
+ [triggerStatementTextView setString:@""];
+
[NSApp beginSheet:addTriggerPanel
modalForWindow:[tableDocumentInstance parentWindow]
modalDelegate:self