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:
thunder2 2013-01-26 11:02:41 +00:00
parent 97d0348f23
commit b433d15536
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -47,7 +47,7 @@ private slots:
void markAsReadMsg();
void markAsUnreadMsg();
void markAllAsReadMsg();
void copyLinksMsg();
void copySelectedLinksMsg();
void removeMsg();
void processFeed();
void openLinkMsg();