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/gitweb/?p=pulseview.git;a=commitdiff_plain;h=41aaa675bfd5e16b489c8087734e422a12846389;hp=15784350767c05f3afb2f9af0c4b212a89493e30 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; }