From 6f4c53ad6f926ef3bd7598edff5a6a0b3ca80cbf Mon Sep 17 00:00:00 2001 From: bamse16 Date: Fri, 5 Oct 2012 13:21:27 +0000 Subject: Issue 1477: Trigger screen add bug --- Source/SPTableTriggers.m | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3