diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2019-06-06 20:28:40 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2019-08-01 12:11:31 -0500 |
commit | 50786b3e5c42310396a6bf5d54744ea968995319 (patch) | |
tree | 669ae5b7382cc86a6c737ce153a673f0ae8eb0a5 /gtk2_ardour/editor_sources.cc | |
parent | fc981d4399b0b2c67f06e4ebd5f3a4a531d63693 (diff) |
(Source List) Recover Regions feature: WIP
Diffstat (limited to 'gtk2_ardour/editor_sources.cc')
-rw-r--r-- | gtk2_ardour/editor_sources.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_sources.cc b/gtk2_ardour/editor_sources.cc index eddebdbb1d..a3f88eb362 100644 --- a/gtk2_ardour/editor_sources.cc +++ b/gtk2_ardour/editor_sources.cc @@ -537,8 +537,10 @@ EditorSources::show_context_menu (int button, int time) using namespace Gtk::Menu_Helpers; Gtk::Menu* menu = ARDOUR_UI_UTILS::shared_popup_menu (); MenuList& items = menu->items(); +#ifdef RECOVER_REGIONS_IS_WORKING items.push_back(MenuElem(_("Recover the selected Sources to their original Track & Position"), sigc::mem_fun(*this, &EditorSources::recover_selected_sources))); +#endif items.push_back(MenuElem(_("Remove the selected Sources"), sigc::mem_fun(*this, &EditorSources::remove_selected_sources))); menu->popup(1, time); @@ -547,7 +549,7 @@ EditorSources::show_context_menu (int button, int time) void EditorSources::recover_selected_sources () { - std::list<boost::weak_ptr<ARDOUR::Region> > to_be_recovered; + ARDOUR::RegionList to_be_recovered; if (_display.get_selection()->count_selected_rows() > 0) { @@ -565,7 +567,7 @@ EditorSources::recover_selected_sources () /* ToDo */ -// _editor->recover_regions(); //this operation should be undo-able + _editor->recover_regions(to_be_recovered); //this operation should be undo-able } |