fixed bug preventing circle creation.

This commit is contained in:
csoler 2017-02-27 21:10:20 +01:00
parent 18cc77a384
commit e7a7c171be

View File

@ -482,6 +482,8 @@ void CreateCircleDialog::createCircle()
// set distribution from GUI. // set distribution from GUI.
circle.mMeta.mCircleId.clear() ; circle.mMeta.mCircleId.clear() ;
circle.mMeta.mGroupFlags = GXS_SERV::FLAG_PRIVACY_PUBLIC;
if (ui.radioButton_Public->isChecked()) { if (ui.radioButton_Public->isChecked()) {
#ifdef DEBUG_CREATE_CIRCLE_DIALOG #ifdef DEBUG_CREATE_CIRCLE_DIALOG
std::cerr << "CreateCircleDialog::createCircle() Public Circle"; std::cerr << "CreateCircleDialog::createCircle() Public Circle";
@ -525,13 +527,13 @@ void CreateCircleDialog::createCircle()
}//else (ui.circleComboBox->getChosenCircle(chosenId)) }//else (ui.circleComboBox->getChosenCircle(chosenId))
} }
else else
{ //if (ui.radioButton_Public->isChecked()) {
QMessageBox::warning(this, tr("RetroShare"),tr("No Circle Limitations Selected"), QMessageBox::Ok, QMessageBox::Ok); QMessageBox::warning(this, tr("RetroShare"),tr("No Circle Limitations Selected"), QMessageBox::Ok, QMessageBox::Ok);
return; return;
}//else (ui.radioButton_Public->isChecked()) }
} }
else else
{//if (mIsExternalCircle) {
#ifdef DEBUG_CREATE_CIRCLE_DIALOG #ifdef DEBUG_CREATE_CIRCLE_DIALOG
std::cerr << "CreateCircleDialog::createCircle() Personal Circle"; std::cerr << "CreateCircleDialog::createCircle() Personal Circle";
std::cerr << std::endl; std::cerr << std::endl;
@ -540,7 +542,7 @@ void CreateCircleDialog::createCircle()
// set personal distribution // set personal distribution
circle.mMeta.mCircleId.clear() ; circle.mMeta.mCircleId.clear() ;
circle.mMeta.mCircleType = GXS_CIRCLE_TYPE_LOCAL; circle.mMeta.mCircleType = GXS_CIRCLE_TYPE_LOCAL;
}//else (mIsExternalCircle) }
uint32_t token; uint32_t token;