From ad915c2abd8ce07f979d1c1619b24faaabb7eaba Mon Sep 17 00:00:00 2001 From: Anthony Truskinger Date: Thu, 12 Dec 2013 16:44:48 +1000 Subject: [PATCH] Fixes #48 --- src/components/directives/bawAnnotationViewer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/directives/bawAnnotationViewer.js b/src/components/directives/bawAnnotationViewer.js index f094a5f5..42c7fada 100644 --- a/src/components/directives/bawAnnotationViewer.js +++ b/src/components/directives/bawAnnotationViewer.js @@ -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