From: Soeren Apel Date: Thu, 7 Nov 2019 21:53:00 +0000 (+0100) Subject: Fix #1107 more by copying also to the mouse selection buffer on X11 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=41aaa675bfd5e16b489c8087734e422a12846389;p=pulseview.git Fix #1107 more by copying also to the mouse selection buffer on X11 --- diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index f76e43a8..002e1954 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -1218,7 +1218,10 @@ void DecodeTrace::on_copy_annotation_to_clipboard() return; QClipboard *clipboard = QGuiApplication::clipboard(); - clipboard->setText(annotations->front().annotations().front()); + clipboard->setText(annotations->front().annotations().front(), QClipboard::Clipboard); + + if (clipboard->supportsSelection()) + clipboard->setText(annotations->front().annotations().front(), QClipboard::Selection); delete annotations; }