mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 21:04:14 -04:00
Merge pull request #1512 from G10h4ck/csoler-jsonapi-channel
Improve GxsChannels API
This commit is contained in:
commit
276328dd91
11 changed files with 722 additions and 105 deletions
|
@ -755,12 +755,12 @@ void GxsGroupDialog::setGroupSignFlags(uint32_t signFlags)
|
|||
// (cyril) very weird piece of code. Need to clear this up.
|
||||
|
||||
ui.comments_allowed->setChecked(true);
|
||||
ui.commentsValueLabel->setText("Allowed") ;
|
||||
ui.commentsValueLabel->setText("Allowed") ;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.comments_no->setChecked(true);
|
||||
ui.commentsValueLabel->setText("Allowed") ;
|
||||
ui.commentsValueLabel->setText("Forbidden") ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -61,11 +61,15 @@ const uint32_t ChannelEditDefaultsFlags = ChannelCreateDefaultsFlags;
|
|||
GxsChannelGroupDialog::GxsChannelGroupDialog(TokenQueue *tokenQueue, QWidget *parent)
|
||||
: GxsGroupDialog(tokenQueue, ChannelCreateEnabledFlags, ChannelCreateDefaultsFlags, parent)
|
||||
{
|
||||
ui.commentGroupBox->setEnabled(false); // These are here because comments_allowed are actually not used yet, so the group will not be changed by the setting and when
|
||||
ui.comments_allowed->setChecked(true); // the group info is displayed it will therefore be set to "disabled" in all cases although it is enabled.
|
||||
}
|
||||
|
||||
GxsChannelGroupDialog::GxsChannelGroupDialog(TokenQueue *tokenExternalQueue, RsTokenService *tokenService, Mode mode, RsGxsGroupId groupId, QWidget *parent)
|
||||
: GxsGroupDialog(tokenExternalQueue, tokenService, mode, groupId, ChannelEditEnabledFlags, ChannelEditDefaultsFlags, parent)
|
||||
{
|
||||
ui.commentGroupBox->setEnabled(false); // These are here because comments_allowed are actually not used yet, so the group will not be changed by the setting and when
|
||||
ui.comments_allowed->setChecked(true); // the group info is displayed it will therefore be set to "disabled" in all cases although it is enabled.
|
||||
}
|
||||
|
||||
void GxsChannelGroupDialog::initUi()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue