FeedReader:

- Fixed sensitive state of the read all button.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6064 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-01-07 22:10:05 +00:00
parent 70e9b08bb0
commit 84c910672e

View File

@ -219,6 +219,8 @@ void FeedReaderMessageWidget::setFeedId(const std::string &feedId)
mFeedName.clear();
}
ui->msgReadAllButton->setEnabled(!mFeedId.empty());
updateMsgs();
updateCurrentMessage();
@ -520,7 +522,6 @@ void FeedReaderMessageWidget::updateCurrentMessage()
ui->msgReadButton->setEnabled(false);
ui->msgUnreadButton->setEnabled(false);
ui->msgReadAllButton->setEnabled(false);
ui->msgRemoveButton->setEnabled(false);
return;
}
@ -535,14 +536,12 @@ void FeedReaderMessageWidget::updateCurrentMessage()
ui->msgReadButton->setEnabled(false);
ui->msgUnreadButton->setEnabled(false);
ui->msgReadAllButton->setEnabled(false);
ui->msgRemoveButton->setEnabled(false);
return;
}
ui->msgReadButton->setEnabled(true);
ui->msgUnreadButton->setEnabled(true);
ui->msgReadAllButton->setEnabled(true);
ui->msgRemoveButton->setEnabled(true);
/* get msg */