From 46fa5c939720a8493975a8d35d04282b68c05842 Mon Sep 17 00:00:00 2001 From: Colin Fletcher Date: Fri, 16 May 2014 00:49:09 +0100 Subject: [PATCH] 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. --- gtk2_ardour/editor_ops.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 30ca540535..e15128f56e 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -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) {