mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
FeedReader:
- Fixed enabled state of read all button - Fixed copy links from context menu git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6091 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
97d0348f23
commit
b433d15536
@ -224,8 +224,10 @@ void FeedReaderMessageWidget::setFeedId(const std::string &feedId)
|
||||
ui->msgTreeWidget->setPlaceholderText("");
|
||||
} else {
|
||||
if (mFeedInfo.flag.forum) {
|
||||
ui->msgReadAllButton->setEnabled(false);
|
||||
ui->msgTreeWidget->setPlaceholderText(tr("The messages will be added to the forum"));
|
||||
} else {
|
||||
ui->msgReadAllButton->setEnabled(true);
|
||||
ui->msgTreeWidget->setPlaceholderText("");
|
||||
}
|
||||
}
|
||||
@ -310,7 +312,7 @@ void FeedReaderMessageWidget::msgTreeCustomPopupMenu(QPoint /*point*/)
|
||||
|
||||
contextMnu.addSeparator();
|
||||
|
||||
action = contextMnu.addAction(QIcon(""), tr("Copy link"), this, SLOT(copyLinskMsg()));
|
||||
action = contextMnu.addAction(QIcon(""), tr("Copy link"), this, SLOT(copySelectedLinksMsg()));
|
||||
action->setEnabled(!selectedItems.empty());
|
||||
|
||||
action = contextMnu.addAction(QIcon(""), tr("Remove"), this, SLOT(removeMsg()));
|
||||
@ -727,7 +729,7 @@ void FeedReaderMessageWidget::markAllAsReadMsg()
|
||||
setMsgAsReadUnread(items, true);
|
||||
}
|
||||
|
||||
void FeedReaderMessageWidget::copyLinksMsg()
|
||||
void FeedReaderMessageWidget::copySelectedLinksMsg()
|
||||
{
|
||||
QString links;
|
||||
|
||||
|
@ -47,7 +47,7 @@ private slots:
|
||||
void markAsReadMsg();
|
||||
void markAsUnreadMsg();
|
||||
void markAllAsReadMsg();
|
||||
void copyLinksMsg();
|
||||
void copySelectedLinksMsg();
|
||||
void removeMsg();
|
||||
void processFeed();
|
||||
void openLinkMsg();
|
||||
|
Loading…
Reference in New Issue
Block a user