diff data/model/EditableDenseThreeDimensionalModel.cpp @ 333:1afaf98dbf11

* Factor out uses of "Sonic Visualiser" in "common" code to applicationName() * Add ability to show work title + artist in top-left of pane (thinking of Vect but may be useful in SV in future) * A few other generalisations useful for Vect
author Chris Cannam
date Fri, 09 Nov 2007 17:46:58 +0000
parents 7a4bd2c8585c
children 7aa1de571880
line wrap: on
line diff
--- a/data/model/EditableDenseThreeDimensionalModel.cpp	Wed Nov 07 14:53:12 2007 +0000
+++ b/data/model/EditableDenseThreeDimensionalModel.cpp	Fri Nov 09 17:46:58 2007 +0000
@@ -244,7 +244,7 @@
 }
 
 void
-EditableDenseThreeDimensionalModel::setCompletion(int completion)
+EditableDenseThreeDimensionalModel::setCompletion(int completion, bool update)
 {
     if (m_completion != completion) {
 	m_completion = completion;
@@ -256,7 +256,8 @@
 
 	} else if (!m_notifyOnAdd) {
 
-	    if (m_sinceLastNotifyMin >= 0 &&
+	    if (update &&
+                m_sinceLastNotifyMin >= 0 &&
 		m_sinceLastNotifyMax >= 0) {
 		emit modelChanged(m_sinceLastNotifyMin,
 				  m_sinceLastNotifyMax + m_resolution);