Skip to content

Commit

Permalink
Fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Dec 12, 2013
1 parent 363ddcf commit ad915c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/directives/bawAnnotationViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ bawds.directive('bawAnnotationViewer',
if (changedAnnotation.selected) {
scope.model.selectedAudioEvent = changedAnnotation;
}
if (changedAnnotation.toBeDeleted) {
scope.model.selectedAudioEvent = null;
}

if (changedAnnotation.isDirty && !changedAnnotation.$intermediateEvent) {
// reset flag
Expand Down

0 comments on commit ad915c2

Please sign in to comment.