Add loading indicator to table.

This commit is contained in:
Aditya Kulkarni
2018-10-29 10:01:37 -07:00
parent 1adb4cf820
commit 35be99170d
3 changed files with 23 additions and 5 deletions

View File

@@ -648,9 +648,12 @@ void RPC::refreshSentZTrans() {
// with the confirmed block number, so we don't have to keep calling gettransaction for the
// sent items.
for (TransactionItem& sentTx: newSentZTxs) {
auto error = txidList->value(sentTx.txid)["confirmations"].is_null();
auto j = txidList->value(sentTx.txid);
if (j.is_null())
continue;
auto error = j["confirmations"].is_null();
if (!error)
sentTx.confirmations = txidList->value(sentTx.txid)["confirmations"].get<json::number_unsigned_t>();
sentTx.confirmations = j["confirmations"].get<json::number_unsigned_t>();
}
transactionsTableModel->addZSentData(newSentZTxs);