Browse Source

bugfixes

import_zecw
Aditya Kulkarni 6 years ago
parent
commit
d5bfcbe4b4
  1. 4
      src/mainwindow.cpp
  2. 4
      src/rpc.cpp
  3. 2
      src/senttxstore.cpp

4
src/mainwindow.cpp

@ -155,8 +155,8 @@ void MainWindow::turnstileProgress() {
}
});
auto accpeted = d.exec();
if (accpeted == QDialog::Accepted && curProgress.step == curProgress.totalSteps) {
d.exec();
if (curProgress.step == curProgress.totalSteps) {
// Finished, so delete the file
rpc->getTurnstile()->removeFile();
}

4
src/rpc.cpp

@ -447,7 +447,7 @@ void RPC::refreshReceivedZTrans(QList<QString> zaddrs) {
// Lookup txid in the map
auto txidInfo = txidDetails->value(txid);
unsigned long timestamp;
qint64 timestamp;
if (txidInfo.find("time") != txidInfo.end()) {
timestamp = txidInfo["time"].get<json::number_unsigned_t>();
} else {
@ -655,7 +655,7 @@ void RPC::refreshTransactions() {
TransactionItem tx{
QString::fromStdString(it["category"]),
(unsigned long)it["time"].get<json::number_unsigned_t>(),
(qint64)it["time"].get<json::number_unsigned_t>(),
(it["address"].is_null() ? "" : QString::fromStdString(it["address"])),
QString::fromStdString(it["txid"]),
it["amount"].get<json::number_float_t>() + fee,

2
src/senttxstore.cpp

@ -38,7 +38,7 @@ QList<TransactionItem> SentTxStore::readSentTxFile() {
for (auto i : jsonDoc.array()) {
auto sentTx = i.toObject();
TransactionItem t{"send", (unsigned long)sentTx["datetime"].toInt(),
TransactionItem t{"send", (qint64)sentTx["datetime"].toVariant().toLongLong(),
sentTx["address"].toString(),
sentTx["txid"].toString(),
sentTx["amount"].toDouble() + sentTx["fee"].toDouble(),

Loading…
Cancel
Save