mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
- Added copy link to GxsFeedItem (GxsChannelPostItem)
- Fixed copy link of GxsGroupFrameDialog - utf8 issue - removed unread message count from group name git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7476 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8427c92486
commit
3458cdc8fc
12 changed files with 112 additions and 182 deletions
|
@ -386,48 +386,23 @@ void GxsGroupFrameDialog::copyGroupLink()
|
|||
return;
|
||||
}
|
||||
|
||||
RetroShareLink link;
|
||||
RetroShareLink link;
|
||||
|
||||
QString name;
|
||||
if(!getCurrentGroupName(name)) return;
|
||||
QString name;
|
||||
if(!getCurrentGroupName(name)) return;
|
||||
|
||||
if (link.createGxsLink(mGroupId, RsGxsMessageId(), name.toStdString(), "", getLinkType())) {
|
||||
QList<RetroShareLink> urls;
|
||||
urls.push_back(link);
|
||||
RSLinkClipboard::copyLinks(urls);
|
||||
}
|
||||
if (link.createGxsGroupLink(getLinkType(), mGroupId, name)) {
|
||||
QList<RetroShareLink> urls;
|
||||
urls.push_back(link);
|
||||
RSLinkClipboard::copyLinks(urls);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool GxsGroupFrameDialog::getCurrentGroupName(QString& name)
|
||||
{
|
||||
GroupTreeWidget* gtw = ui->groupTreeWidget;
|
||||
|
||||
QString id = QString::fromStdString(mGroupId.toStdString());
|
||||
|
||||
if(gtw->getGroupName(id, mYourGroups, name))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if(gtw->getGroupName(id, mSubscribedGroups, name))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if(gtw->getGroupName(id, mYourGroups, name))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if(gtw->getGroupName(id, mOtherGroups, name))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return ui->groupTreeWidget->getGroupName(QString::fromStdString(mGroupId.toStdString()), name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void GxsGroupFrameDialog::markMsgAsRead()
|
||||
{
|
||||
GxsMessageFrameWidget *msgWidget = messageWidget(mGroupId, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue