Ticket #45 (closed defect: done)

Opened 9 years ago

Last modified 9 years ago

Incident Event data not saved in script xml file

Reported by: jdalbey Owned by: bmcguffin
Priority: Medium Milestone: ScriptBuilder 1
Component: ScriptBuilder GUI Version:
Severity: Major Keywords:
Cc:

Description

Steps to reproduce:
Start ScriptBuilder and create a New Incident.
Add a CAD event and supply "Hello World" for the CAD Log text.
Close the event window and save the script.
Open the saved script file in a text editor. The CAD Event tag exists, but the CAD Log text is absent.
These seems to be the case for all event types.

Change History

comment:1 Changed 9 years ago by bmcguffin

  • Status changed from new to accepted

This bug only seems to appear if the user does not press "enter" before closing the event editor window. Pressing "enter" triggers a write to the data structure representing the event and so saves the data. I should be able to change it so that pressing any key triggers the write, so the file is always up to date.

comment:2 Changed 9 years ago by bmcguffin

  • Component changed from none to ScriptBuilder GUI

comment:3 Changed 9 years ago by bmcguffin

  • Status changed from accepted to closed
  • Resolution set to done

I removed the key listeners altogether in favor of a window close listener at the top level. When the window is closed, the panels are all notified and update their corresponding models.

Note: See TracTickets for help on using tickets.