Don't clear the clipboard when deleting things
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Thu, 15 May 2014 23:49:09 +0000 (00:49 +0100)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Fri, 16 May 2014 00:03:37 +0000 (01:03 +0100)
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

index 30ca540535e30486538e7b4fab72ba2bed958c73..e15128f56ec551909b18814df417bfc70a0134bf 100644 (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) {