enabled disabling autodownload for channel admin (patch from asamK)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5075 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-04-03 18:56:29 +00:00
parent fb47f06d24
commit 2cd1df7484

View File

@ -483,20 +483,20 @@ void ChannelFeed::updateChannelMsgs()
unsubscribeButton->setEnabled(false); unsubscribeButton->setEnabled(false);
unsubscribeButton->hide(); unsubscribeButton->hide();
actionsetAllAsRead->setEnabled(false); actionsetAllAsRead->setEnabled(false);
actionEnable_Auto_Download->setEnabled(false);
} }
if (ci.channelFlags & RS_DISTRIB_PUBLISH) { if (ci.channelFlags & RS_DISTRIB_PUBLISH) {
postButton->setEnabled(true); postButton->setEnabled(true);
actionEnable_Auto_Download->setEnabled(false);
} else { } else {
postButton->setEnabled(false); postButton->setEnabled(false);
} }
if(!(ci.channelFlags & RS_DISTRIB_PUBLISH) && if (!(ci.channelFlags & RS_DISTRIB_ADMIN) &&
(ci.channelFlags & RS_DISTRIB_SUBSCRIBED)) (ci.channelFlags & RS_DISTRIB_SUBSCRIBED)) {
actionEnable_Auto_Download->setEnabled(true); actionEnable_Auto_Download->setEnabled(true);
} else {
actionEnable_Auto_Download->setEnabled(false);
}
std::list<ChannelMsgSummary> msgs; std::list<ChannelMsgSummary> msgs;
std::list<ChannelMsgSummary>::iterator it; std::list<ChannelMsgSummary>::iterator it;