Display the Channel Type on Channel Details

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3535 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-09-24 14:51:00 +00:00
parent 789ca4ff6b
commit 37b797a2b4
2 changed files with 42 additions and 4 deletions

View file

@ -55,6 +55,9 @@ ChannelDetails::ChannelDetails(QWidget *parent, Qt::WFlags flags)
ui.IDline ->setReadOnly(true);
ui.DescriptiontextEdit ->setReadOnly(true);
ui.typeEncrypted->setEnabled(false);
ui.typePrivate->setEnabled(false);
}
@ -94,7 +97,8 @@ void ChannelDetails::loadChannel()
if (!rsChannels)
{
return;
}
}
uint32_t flags = 0;
std::list<ChannelInfo> channelList;
std::list<ChannelInfo>::iterator it;
@ -131,6 +135,17 @@ void ChannelDetails::loadChannel()
// Set Channel Description
ui.DescriptiontextEdit->setText(QString::fromStdWString(ci.channelDesc));
if (flags |= RS_DISTRIB_PRIVATE)
{
ui.typeEncrypted->setChecked(false);
ui.typePrivate->setChecked(true);
}
else if (flags |= RS_DISTRIB_ENCRYPTED)
{
ui.typeEncrypted->setChecked(true);
ui.typePrivate->setChecked(false);
}