time the fake region was updated. Now any StateManager object can
implement a should_save_state() which controls whether the state of the
object should be saved.
git-svn-id: svn://localhost/ardour2/trunk@760
d708f5d6-7413-0410-9779-
e7cbd77b26cf
state_id_t _current_state_id;
+ virtual bool should_save_state () const { return true; }
+
static void prohibit_save ();
static void allow_save (const char* why, bool dosave);
void
StateManager::save_state (std::string why)
{
+ if (!should_save_state())
+ return;
+
if (!_allow_save) {
SaveAllowed.connect (mem_fun (*this, &StateManager::save_state));
return;