Code

Fixed problem with OK dialog and automatic saving of objects.