fixed copy comment in channels/post/comment (and GXS comments in general)

This commit is contained in:
csoler 2023-07-30 18:47:56 +02:00
parent ade297f257
commit 583431852c

View File

@ -464,11 +464,7 @@ void GxsCommentTreeWidget::replyToComment()
void GxsCommentTreeWidget::copyComment() void GxsCommentTreeWidget::copyComment()
{ {
QString txt = dynamic_cast<QAction*>(sender())->data().toString(); QString txt = dynamic_cast<QAction*>(sender())->data().toString();
QApplication::clipboard()->setText(txt) ;
QMimeData *mimeData = new QMimeData();
mimeData->setHtml("<html>"+txt+"</html>");
QClipboard *clipboard = QApplication::clipboard();
clipboard->setMimeData(mimeData, QClipboard::Clipboard);
} }
void GxsCommentTreeWidget::setup(RsGxsCommentService *comment_service) void GxsCommentTreeWidget::setup(RsGxsCommentService *comment_service)