bugfixes
This commit is contained in:
@@ -155,8 +155,8 @@ void MainWindow::turnstileProgress() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
auto accpeted = d.exec();
|
d.exec();
|
||||||
if (accpeted == QDialog::Accepted && curProgress.step == curProgress.totalSteps) {
|
if (curProgress.step == curProgress.totalSteps) {
|
||||||
// Finished, so delete the file
|
// Finished, so delete the file
|
||||||
rpc->getTurnstile()->removeFile();
|
rpc->getTurnstile()->removeFile();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ void RPC::refreshReceivedZTrans(QList<QString> zaddrs) {
|
|||||||
// Lookup txid in the map
|
// Lookup txid in the map
|
||||||
auto txidInfo = txidDetails->value(txid);
|
auto txidInfo = txidDetails->value(txid);
|
||||||
|
|
||||||
unsigned long timestamp;
|
qint64 timestamp;
|
||||||
if (txidInfo.find("time") != txidInfo.end()) {
|
if (txidInfo.find("time") != txidInfo.end()) {
|
||||||
timestamp = txidInfo["time"].get<json::number_unsigned_t>();
|
timestamp = txidInfo["time"].get<json::number_unsigned_t>();
|
||||||
} else {
|
} else {
|
||||||
@@ -655,7 +655,7 @@ void RPC::refreshTransactions() {
|
|||||||
|
|
||||||
TransactionItem tx{
|
TransactionItem tx{
|
||||||
QString::fromStdString(it["category"]),
|
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"])),
|
(it["address"].is_null() ? "" : QString::fromStdString(it["address"])),
|
||||||
QString::fromStdString(it["txid"]),
|
QString::fromStdString(it["txid"]),
|
||||||
it["amount"].get<json::number_float_t>() + fee,
|
it["amount"].get<json::number_float_t>() + fee,
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ QList<TransactionItem> SentTxStore::readSentTxFile() {
|
|||||||
|
|
||||||
for (auto i : jsonDoc.array()) {
|
for (auto i : jsonDoc.array()) {
|
||||||
auto sentTx = i.toObject();
|
auto sentTx = i.toObject();
|
||||||
TransactionItem t{"send", (unsigned long)sentTx["datetime"].toInt(),
|
TransactionItem t{"send", (qint64)sentTx["datetime"].toVariant().toLongLong(),
|
||||||
sentTx["address"].toString(),
|
sentTx["address"].toString(),
|
||||||
sentTx["txid"].toString(),
|
sentTx["txid"].toString(),
|
||||||
sentTx["amount"].toDouble() + sentTx["fee"].toDouble(),
|
sentTx["amount"].toDouble() + sentTx["fee"].toDouble(),
|
||||||
|
|||||||
Reference in New Issue
Block a user