fixed auto DL for own channels. Apparently the channel status is missing for this special case.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6259 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-03-20 20:34:03 +00:00
parent 6121e613eb
commit 72da514e0a
2 changed files with 6 additions and 6 deletions

View File

@ -707,12 +707,13 @@ bool p3Channels::channelGetAutoDl(const std::string& chId, bool& autoDl)
statMap::iterator it = mChannelStatus.find(chId);
if(it != mChannelStatus.end())
{
autoDl = it->second & RS_CHAN_STATUS_AUTO_DL;
return true;
else // create the entry. No particular risk with that.
{
mChannelStatus[chId] = 0 ;
autoDl = false ;
}
return false;
return true;
}
/***************************************************************************************/

View File

@ -520,8 +520,7 @@ void ChannelFeed::updateChannelMsgs()
postButton->setEnabled(false);
}
if (!(ci.channelFlags & RS_DISTRIB_ADMIN) &&
(ci.channelFlags & RS_DISTRIB_SUBSCRIBED)) {
if (ci.channelFlags & RS_DISTRIB_SUBSCRIBED) {
actionEnable_Auto_Download->setEnabled(true);
} else {
actionEnable_Auto_Download->setEnabled(false);