mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Allow DnD to TriggerBox from Editor's sidebar
This commit is contained in:
parent
8d137b1514
commit
142ca9fd07
1 changed files with 3 additions and 5 deletions
|
|
@ -805,15 +805,13 @@ TriggerBoxUI::drag_data_received (Glib::RefPtr<Gdk::DragContext> const& context,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (data.get_target() == X_("regions")) {
|
if (data.get_target() == X_("regions")) {
|
||||||
#if 0
|
boost::shared_ptr<Region> region = PublicEditor::instance().get_dragged_region_from_sidebar ();
|
||||||
/* TODO -- get access to Editor::_regions */
|
|
||||||
/boost::shared_ptr<Region> region = EditorRegions::get_dragged_region ();
|
|
||||||
if (region) {
|
if (region) {
|
||||||
_triggerbox.set_from_selection (n, region);
|
_triggerbox.set_from_selection (n, region);
|
||||||
context->drag_finish (true, false, time);
|
context->drag_finish (true, false, time);
|
||||||
|
} else {
|
||||||
|
context->drag_finish (false, false, time);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
context->drag_finish (false, false, time);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue