NO-OP: update comments

This commit is contained in:
Robin Gareus 2023-05-31 15:53:12 +02:00
parent f3ee7fdf88
commit 520b209c83
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -222,6 +222,12 @@ EditorSources::remove_selected_sources ()
for (auto const& region : regions) {
_change_connection.block (true);
/* Note: this ignores regions without RegionView.
* When removing sources (opt == 2),
* Playlist::region_going_away takes care of that
* (Source::drop_references -> Region::source_deleted,
* -> Region::drop_references). see f58f5bef55a5aa1
*/
_editor->set_selected_regionview_from_region_list (region, Selection::Add);
_change_connection.block (false);
}
@ -237,8 +243,6 @@ EditorSources::remove_selected_sources ()
for (auto const& s : to_be_removed) {
_session->remove_source (s); // this operation is (currently) not undo-able
}
// TODO Session::_history.clear(); or otherwise remove all
// undo operations that reference regions using the removed sources
}
}
}