]> sigrok.org Git - pulseview.git/commitdiff
Fix #1107 more by copying also to the mouse selection buffer on X11
authorSoeren Apel <redacted>
Thu, 7 Nov 2019 21:53:00 +0000 (22:53 +0100)
committerSoeren Apel <redacted>
Thu, 7 Nov 2019 21:54:13 +0000 (22:54 +0100)
pv/views/trace/decodetrace.cpp

index f76e43a8470427faee0601c3238b0dfc813fd43a..002e195439e9d3f3d32e60fab95fb91df0cef16c 100644 (file)
@@ -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;
 }