mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
Fix crash when dragging plugins from sidebar
This commit is contained in:
parent
72aebf0308
commit
cbe838ce26
2 changed files with 7 additions and 0 deletions
|
|
@ -2155,6 +2155,10 @@ not match the configuration of this track.");
|
|||
bool
|
||||
ProcessorBox::drag_refuse (DnDVBox<ProcessorEntry>* source, ProcessorEntry*)
|
||||
{
|
||||
if (!source) {
|
||||
/* handle drag from sidebar */
|
||||
return false;
|
||||
}
|
||||
ProcessorBox* other = reinterpret_cast<ProcessorBox*> (source->get_data ("processorbox"));
|
||||
return (other && other->_route == _route);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -937,6 +937,9 @@ RegionEditor::RegionFxBox::delete_dragged_plugins (Region::RegionFxList const& f
|
|||
bool
|
||||
RegionEditor::RegionFxBox::drag_refuse (Gtkmm2ext::DnDVBox<RegionFxEntry>* source, RegionFxEntry*)
|
||||
{
|
||||
if (!source) {
|
||||
return false;
|
||||
}
|
||||
RegionFxBox* other = reinterpret_cast<RegionFxBox*> (source->get_data ("regionfxbox"));
|
||||
return (other && other->_region == _region);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue