Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 108:e25e8f5d785b
* 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 | 907e44e4ecf0 |
children | 2dd30a7cd21a |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Thu Mar 13 10:12:14 2008 +0000 +++ b/framework/MainWindowBase.cpp Thu Mar 13 14:06:03 2008 +0000 @@ -780,7 +780,8 @@ sodm->getSampleRate()) .toText(false).c_str())); - command->finish(); + Command *c = command->finish(); + if (c) CommandHistory::getInstance()->addCommand(c, false); } } } @@ -931,9 +932,9 @@ Model *prevMain = getMainModel(); if (prevMain) { m_playSource->removeModel(prevMain); - PlayParameterRepository::getInstance()->removeModel(prevMain); + PlayParameterRepository::getInstance()->removePlayable(prevMain); } - PlayParameterRepository::getInstance()->addModel(newModel); + PlayParameterRepository::getInstance()->addPlayable(newModel); m_document->setMainModel(newModel);