mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
Qt6: .toObject()
This commit is contained in:
parent
80fed34d16
commit
d7c4717092
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ void LocalMoneroModel::setPaymentMethods(const QJsonObject &data) {
|
|||
m_paymentMethods = data;
|
||||
m_paymentMethodNames.clear();
|
||||
for (const auto &payment_method : data) {
|
||||
auto code = payment_method["code"].toString();
|
||||
auto name = payment_method["name"].toString();
|
||||
auto code = payment_method.toObject()["code"].toString();
|
||||
auto name = payment_method.toObject()["name"].toString();
|
||||
|
||||
if (!code.isEmpty() && !name.isEmpty()) {
|
||||
m_paymentMethodNames[code] = name;
|
||||
|
|
Loading…
Reference in a new issue