diff data/model/AggregateWaveModel.h @ 1389:770f80d9ccee

Invalidate an aggregate model when one of its components announces it's about to be deleted
author Chris Cannam
date Mon, 27 Feb 2017 15:43:30 +0000
parents 54af1e21705c
children 1a572937ed8c
line wrap: on
line diff
--- a/data/model/AggregateWaveModel.h	Mon Feb 27 15:06:17 2017 +0000
+++ b/data/model/AggregateWaveModel.h	Mon Feb 27 15:43:30 2017 +0000
@@ -84,10 +84,12 @@
     void componentModelChanged();
     void componentModelChangedWithin(sv_frame_t, sv_frame_t);
     void componentModelCompletionChanged();
+    void componentModelAboutToBeDeleted();
 
 protected:
     ChannelSpecList m_components;
     static PowerOfSqrtTwoZoomConstraint m_zoomConstraint;
+    bool m_invalidated; // because one of its component models is aboutToBeDeleted
 };
 
 #endif