From 4b0d1dcfbf0d182cae901e4bfd97bf908fe00218 Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Mon, 8 Jul 2019 16:09:03 +0200 Subject: Fixes #2275, transactionCommited txid list txid list was empty when emitted --- src/libwalletqt/Wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libwalletqt/Wallet.cpp') diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 46f843de..90172d15 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -524,7 +524,8 @@ bool Wallet::submitTxFile(const QString &fileName) const void Wallet::commitTransactionAsync(PendingTransaction *t) { m_scheduler.run([this, t] { - emit transactionCommitted(t->commit(), t, t->txid()); + auto txIdList = t->txid(); // retrieve before commit + emit transactionCommitted(t->commit(), t, txIdList); }); } -- cgit v1.2.3