mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 07:59:29 -05:00
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:
parent
70e9b08bb0
commit
84c910672e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user