mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
6121e613eb
commit
72da514e0a
@ -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;
|
||||
}
|
||||
|
||||
/***************************************************************************************/
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user