diff options
Diffstat (limited to 'libs/ardour/session_command.cc')
-rw-r--r-- | libs/ardour/session_command.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index 6c2621fdb9..3ff68a06fb 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -146,7 +146,15 @@ Session::stateful_diff_command_factory (XMLNode* n) if (r) { return new StatefulDiffCommand (r, *n); } - } + + } else if (obj_T == typeid (AudioPlaylist).name() || obj_T == typeid (MidiPlaylist).name()) { + boost::shared_ptr<Playlist> p = playlists->by_id (id); + if (p) { + return new StatefulDiffCommand (p, *n); + } else { + cerr << "Playlist with ID = " << id << " not found\n"; + } + } /* we failed */ |