diff --git a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp index cec0f67c6..902d28858 100644 --- a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp +++ b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp @@ -112,20 +112,11 @@ void PostedCreatePostDialog::processSettings(bool load) Settings->beginGroup(QString("PostedCreatePostDialog")); if (load) { - // load settings - - // state of ID Chooser combobox - int index = Settings->value("IDChooser", 0).toInt(); - ui->idChooser->setCurrentIndex(index); - // load last used Stacked Page setPage(Settings->value("viewPage", VIEW_POST).toInt()); } else { // save settings - // state of ID Chooser combobox - Settings->setValue("IDChooser", ui->idChooser->currentIndex()); - // store last used Page Settings->setValue("viewPage", viewMode()); } diff --git a/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp b/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp index 678040293..0ad37e78b 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListWidgetWithModel.cpp @@ -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(); }