From 2b74c459eecdd0c8f300c72ec98cc23b572a9cef Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Tue, 23 Oct 2018 20:09:25 -0700 Subject: [PATCH] spelling --- src/mainwindow.cpp | 1 - src/senttxstore.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f5a4afe..5e38f06 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -10,7 +10,6 @@ #include "precompiled.h" - using json = nlohmann::json; MainWindow::MainWindow(QWidget *parent) : diff --git a/src/senttxstore.cpp b/src/senttxstore.cpp index 8adb0ba..23d0b79 100644 --- a/src/senttxstore.cpp +++ b/src/senttxstore.cpp @@ -38,9 +38,11 @@ QList SentTxStore::readSentTxFile() { for (auto i : jsonDoc.array()) { auto sentTx = i.toObject(); - TransactionItem t{"sent", (unsigned long)sentTx["datetime"].toInt(), + TransactionItem t{"send", (unsigned long)sentTx["datetime"].toInt(), sentTx["address"].toString(), - sentTx["txid"].toString(), sentTx["amount"].toDouble(), 0}; + sentTx["txid"].toString(), + sentTx["amount"].toDouble() + sentTx["fee"].toDouble(), + 0}; items.push_back(t); }