From 583431852cf108e4153be733d5e10adf6f3fc878 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 30 Jul 2023 18:47:56 +0200 Subject: [PATCH] fixed copy comment in channels/post/comment (and GXS comments in general) --- retroshare-gui/src/gui/gxs/GxsCommentTreeWidget.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/gxs/GxsCommentTreeWidget.cpp b/retroshare-gui/src/gui/gxs/GxsCommentTreeWidget.cpp index 0b65b7c3d..517543b9a 100644 --- a/retroshare-gui/src/gui/gxs/GxsCommentTreeWidget.cpp +++ b/retroshare-gui/src/gui/gxs/GxsCommentTreeWidget.cpp @@ -464,11 +464,7 @@ void GxsCommentTreeWidget::replyToComment() void GxsCommentTreeWidget::copyComment() { QString txt = dynamic_cast(sender())->data().toString(); - - QMimeData *mimeData = new QMimeData(); - mimeData->setHtml(""+txt+""); - QClipboard *clipboard = QApplication::clipboard(); - clipboard->setMimeData(mimeData, QClipboard::Clipboard); + QApplication::clipboard()->setText(txt) ; } void GxsCommentTreeWidget::setup(RsGxsCommentService *comment_service)