diff data/model/Model.cpp @ 391:5858cc462d0a

* Fix #1628781 changes to layer visibility and mute should use a command * Also use a command for changes to layer playback pan, gain, plugin settings * Refactor PlayParameterRepository to remove dependency on audioio from base * Fix failure to save play parameters for main model in session file
author Chris Cannam
date Thu, 13 Mar 2008 14:06:03 +0000
parents d77e1fa49e26
children 88ad01799040
line wrap: on
line diff
--- a/data/model/Model.cpp	Thu Mar 13 12:41:20 2008 +0000
+++ b/data/model/Model.cpp	Thu Mar 13 14:06:03 2008 +0000
@@ -15,7 +15,6 @@
 
 #include "Model.h"
 #include "AlignmentModel.h"
-#include "base/PlayParameterRepository.h"
 
 #include <QTextStream>
 
@@ -37,12 +36,6 @@
         m_alignment->aboutToDelete();
         delete m_alignment;
     }
-
-    // Subclasses have to handle adding themselves to the repository,
-    // if they want to be played.  We can't do it from here because
-    // the repository would be unable to tell whether we were playable
-    // or not (because dynamic_cast won't work from the base class ctor)
-    PlayParameterRepository::getInstance()->removeModel(this);
 }
 
 void