From a866184d6d7c78ea977590ca38f16ff627fb4aab Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 6 Oct 2020 21:38:06 +0200 Subject: [PATCH] restore back changes --- .../src/gui/Posted/BoardPostDisplayWidget.cpp | 18 ------------------ .../src/gui/Posted/BoardPostDisplayWidget.h | 1 - 2 files changed, 19 deletions(-) diff --git a/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.cpp b/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.cpp index 259740740..514ae5fcf 100644 --- a/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.cpp +++ b/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.cpp @@ -20,7 +20,6 @@ #include #include -#include #include #include #include @@ -28,7 +27,6 @@ #include "rshare.h" #include "BoardPostDisplayWidget.h" #include "PhotoView.h" -#include "gui/RetroShareLink.h" #include "gui/gxs/GxsIdDetails.h" #include "util/misc.h" #include "gui/common/FilesDefs.h" @@ -167,22 +165,6 @@ void BoardPostDisplayWidgetBase::showAuthorInPeople() idDialog->navigate(RsGxsId(mPost.mMeta.mAuthorId)); } -void BoardPostDisplayWidgetBase::copyMessageLink() -{ - if (mPost.mMeta.mGroupId.isNull() || mPost.mMeta.mMsgId.isNull()) { - return; - } - - RetroShareLink link = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_POSTED, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, QString::fromUtf8(mPost.mMeta.mMsgName.c_str())); - - if (link.valid()) { - QList urls; - urls.push_back(link); - RSLinkClipboard::copyLinks(urls); - QMessageBox::information(NULL,tr("information"),tr("The Retrohare link was copied to your clipboard.")) ; - } -} - void BoardPostDisplayWidgetBase::setup() { // show/hide things based on the view type diff --git a/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.h b/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.h index 83e8d4eaa..03db04970 100644 --- a/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.h +++ b/retroshare-gui/src/gui/Posted/BoardPostDisplayWidget.h @@ -84,7 +84,6 @@ protected slots: void loadComments(bool e); void showAuthorInPeople(); - void copyMessageLink(); void readToggled(); void setReadStatus(bool isNew, bool isUnread) ; void makeUpVote() ;