mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 07:05:26 -04:00
save chosen ID in posted
This commit is contained in:
parent
4199b1a02f
commit
acd61fd531
2 changed files with 11 additions and 10 deletions
|
@ -687,10 +687,20 @@ void PostedListWidgetWithModel::processSettings(bool load)
|
|||
|
||||
if (load)
|
||||
{
|
||||
// state of ID Chooser combobox
|
||||
RsGxsId gxs_id(Settings->value("IDChooser", QString::fromStdString(RsGxsId().toStdString())).toString().toStdString());
|
||||
|
||||
if(!gxs_id.isNull() && rsIdentity->isOwnId(gxs_id))
|
||||
ui->idChooser->setChosenId(gxs_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
// state of ID Chooser combobox
|
||||
RsGxsId id;
|
||||
|
||||
if(ui->idChooser->getChosenId(id))
|
||||
Settings->setValue("IDChooser", QString::fromStdString(id.toStdString()));
|
||||
}
|
||||
|
||||
Settings->endGroup();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue