From c171e0208c77438a5fd66e63d90ca1e198d589f2 Mon Sep 17 00:00:00 2001 From: zathras-crypto Date: Wed, 20 May 2015 10:49:26 +1000 Subject: [PATCH] UI: Fix for pending transactions not updating trade or tx history PendingAdd not called until sent dialog acknowledged, but signal for BTC balance change fires immediately thus the tx is not yet in the pending map & doesn't get added to history --- src/qt/metadexdialog.cpp | 2 +- src/qt/sendmpdialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/metadexdialog.cpp b/src/qt/metadexdialog.cpp index 68688ce40b269..1e1af2ef8eaf9 100755 --- a/src/qt/metadexdialog.cpp +++ b/src/qt/metadexdialog.cpp @@ -624,8 +624,8 @@ void MetaDExDialog::sendTrade(bool sell) if (!autoCommit) { PopulateSimpleDialog(rawHex, "Raw Hex (auto commit is disabled)", "Raw transaction hex"); } else { - PopulateTXSentDialog(txid.GetHex()); PendingAdd(txid, strFromAddress, "", MSC_TYPE_METADEX, propertyIdSell, amountSell, propertyIdDes, amountDes, 1); + PopulateTXSentDialog(txid.GetHex()); } } } diff --git a/src/qt/sendmpdialog.cpp b/src/qt/sendmpdialog.cpp index 71a5edc45af3c..0a258ed673b16 100644 --- a/src/qt/sendmpdialog.cpp +++ b/src/qt/sendmpdialog.cpp @@ -322,8 +322,8 @@ void SendMPDialog::sendMPTransaction() if (!autoCommit) { PopulateSimpleDialog(rawHex, "Raw Hex (auto commit is disabled)", "Raw transaction hex"); } else { - PopulateTXSentDialog(txid.GetHex()); PendingAdd(txid, fromAddress.ToString(), refAddress.ToString(), MSC_TYPE_SIMPLE_SEND, propertyId, sendAmount); + PopulateTXSentDialog(txid.GetHex()); } } clearFields();