mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 20:34:25 -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
2 changed files with 6 additions and 6 deletions
|
@ -707,12 +707,13 @@ bool p3Channels::channelGetAutoDl(const std::string& chId, bool& autoDl)
|
||||||
statMap::iterator it = mChannelStatus.find(chId);
|
statMap::iterator it = mChannelStatus.find(chId);
|
||||||
|
|
||||||
if(it != mChannelStatus.end())
|
if(it != mChannelStatus.end())
|
||||||
{
|
|
||||||
autoDl = it->second & RS_CHAN_STATUS_AUTO_DL;
|
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 true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************************/
|
/***************************************************************************************/
|
||||||
|
|
|
@ -520,8 +520,7 @@ void ChannelFeed::updateChannelMsgs()
|
||||||
postButton->setEnabled(false);
|
postButton->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(ci.channelFlags & RS_DISTRIB_ADMIN) &&
|
if (ci.channelFlags & RS_DISTRIB_SUBSCRIBED) {
|
||||||
(ci.channelFlags & RS_DISTRIB_SUBSCRIBED)) {
|
|
||||||
actionEnable_Auto_Download->setEnabled(true);
|
actionEnable_Auto_Download->setEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
actionEnable_Auto_Download->setEnabled(false);
|
actionEnable_Auto_Download->setEnabled(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue