message: Complete fix for Applying option have no effect
diff: @@ -392,6 +392,7 @@ void SpectreBridge::populateOptions()
  options.insert("optLanguage", languages);
  options.insert("Fee", ((double)options.value("Fee").toLongLong()) / 100000000 );
  + options.insert("ReserveBalance", ((double)options.value("ReserveBalance").toLongLong()) / 100000000 );
  info->insert("options", options);
  }
  @@ -1193,8 +1194,6 @@ void SpectreBridge::getOptions()
  QJsonValue SpectreBridge::userAction(QJsonValue action)
  {
  - qDebug() << "SpectreBridge::userAction action";
  - qDebug() << action;
  QString key = action.toArray().at(0).toString();
  if (key == "") {
  key = action.toObject().keys().at(0);
  @@ -1225,24 +1224,24 @@ QJsonValue SpectreBridge::userAction(QJsonValue action)
  {
  OptionsModel * optionsModel(window->clientModel->getOptionsModel());
  - qDebug() << "Options";
  - qDebug() << getInfo()["options"];
  -
  QJsonObject object = action.toObject().value("optionsChanged").toObject();
  for(int option = 0;option < optionsModel->rowCount(); option++) {
  if(object.contains(optionsModel->optionIDName(option))) {
  - qDebug() << "value of the option as a variant " << object.value(optionsModel->optionIDName(option)).toVariant();
  if (optionsModel->optionIDName(option) == "Fee") {
  //smallest number is 0.00000001
  //convert to long before saving it
  QString feeAsString = object.value(optionsModel->optionIDName(option)).toString();
  QVariant longFee;
  longFee.setValue((qlonglong)(feeAsString.toDouble() * 100000000));
  - qDebug() << "Fee as string is " << feeAsString;
  - qDebug() << "Fee as long is " << longFee.toLongLong();
  - qDebug() << "QVariant longFee is " << longFee;
  optionsModel->setData(optionsModel->index(option), longFee);
  + } else if (optionsModel->optionIDName(option) == "ReserveBalance") {
  + //smallest number is 0.00000001
  + //convert to long before saving it
  + QString reserveBalanceAsString = object.value(optionsModel->optionIDName(option)).toString();
  + QVariant longReserveBalance;
  + longReserveBalance.setValue((qlonglong)(reserveBalanceAsString.toDouble() * 100000000));
  + optionsModel->setData(optionsModel->index(option), longReserveBalance);
  } else {
  optionsModel->setData(optionsModel->index(option), object.value(optionsModel->optionIDName(option)).toVariant());
  }
  