Don't clear the clipboard when deleting things

Deleting regions (or ranges, or anything) shouldn't affect the contents of
the clipboard - only CutCopyOp::Copy, CutCopyOp::Cut and CutCopyOp::Clear
should do that.
This commit is contained in:
Colin Fletcher 2014-05-16 00:49:09 +01:00
parent 99c0ef21d7
commit 46fa5c9397
1 changed files with 2 additions and 2 deletions

View File

@ -3784,7 +3784,7 @@ Editor::can_cut_copy () const
/** Cut, copy or clear selected regions, automation points or a time range.
* @param op Operation (Cut, Copy or Clear)
* @param op Operation (Delete, Cut, Copy or Clear)
*/
void
Editor::cut_copy (CutCopyOp op)
@ -3820,7 +3820,7 @@ Editor::cut_copy (CutCopyOp op)
}
}
if ( op != Clear ) //"Delete" doesn't change copy/paste buf
if ( op != Delete ) //"Delete" doesn't change copy/paste buf
cut_buffer->clear ();
if (entered_marker) {