Retain plugins order for copy/cut/paste + DnD #7416
authorRobin Gareus <robin@gareus.org>
Tue, 4 Jul 2017 15:08:58 +0000 (17:08 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 4 Jul 2017 16:08:36 +0000 (18:08 +0200)
gtk2_ardour/processor_box.cc

index 61b80116cacc7e7244a47e35e2e8510bc00328c6..0206ecdddcd969a6011f01f55e548ac48d567692 100644 (file)
@@ -2040,7 +2040,7 @@ ProcessorBox::object_drop (DnDVBox<ProcessorEntry>* source, ProcessorEntry* posi
 
        boost::shared_ptr<Processor> p = find_drop_position (position);
 
-       list<ProcessorEntry*> children = source->selection ();
+       list<ProcessorEntry*> children = source->selection (true);
        list<boost::shared_ptr<Processor> > procs;
        for (list<ProcessorEntry*>::const_iterator i = children.begin(); i != children.end(); ++i) {
                if ((*i)->processor ()) {
@@ -3455,7 +3455,7 @@ could not match the configuration of this track.");
 void
 ProcessorBox::get_selected_processors (ProcSelection& processors) const
 {
-       const list<ProcessorEntry*> selection = processor_display.selection ();
+       const list<ProcessorEntry*> selection = processor_display.selection (true);
        for (list<ProcessorEntry*>::const_iterator i = selection.begin(); i != selection.end(); ++i) {
                processors.push_back ((*i)->processor ());
        }