aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2017-05-11 09:33:40 +0200
committerJonas Schnelli <[email protected]>2017-05-11 15:27:05 +0200
commit9b9ca538cdf95c3a16408229772b69b0c956fbc0 (patch)
tree3c145a81c40de1a45de3da361d4a23ea406159da /src
parentMake sure we use nTxConfirmTarget during Qt fee bumps (diff)
downloaddiscoin-9b9ca538cdf95c3a16408229772b69b0c956fbc0.tar.xz
discoin-9b9ca538cdf95c3a16408229772b69b0c956fbc0.zip
Only update the transactionrecord if the fee bump has been commited
Diffstat (limited to 'src')
-rw-r--r--src/qt/transactionview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index 4616685d3..9008c8163 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -414,10 +414,10 @@ void TransactionView::bumpFee()
hash.SetHex(hashQStr.toStdString());
// Bump tx fee over the walletModel
- model->bumpFee(hash);
-
- // Update the table
- model->getTransactionTableModel()->updateTransaction(hashQStr, CT_UPDATED, false);
+ if (model->bumpFee(hash)) {
+ // Update the table
+ model->getTransactionTableModel()->updateTransaction(hashQStr, CT_UPDATED, false);
+ }
}
void TransactionView::copyAddress()