aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-09-26 11:31:49 +0200
committerSjors Provoost <sjors@sprovoost.nl>2019-11-13 20:03:42 +0100
commitc6dd565c8820aa8a98b190621e10c6e2821a9ecc (patch)
tree894f4cde23b01755a1d0300d1cdadbb31e10b8c3 /src/qt/walletmodel.cpp
parent39465d545d521e66bb3accfa788aa94bffaf47eb (diff)
downloadbitcoin-c6dd565c8820aa8a98b190621e10c6e2821a9ecc.tar.xz
[gui] watch-only wallet: copy PSBT to clipboard
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index 33801d3907..fb92e29f21 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -183,7 +183,7 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
std::string strFailReason;
auto& newTx = transaction.getWtx();
- newTx = m_wallet->createTransaction(vecSend, coinControl, true /* sign */, nChangePosRet, nFeeRequired, strFailReason);
+ newTx = m_wallet->createTransaction(vecSend, coinControl, !privateKeysDisabled() /* sign */, nChangePosRet, nFeeRequired, strFailReason);
transaction.setTransactionFee(nFeeRequired);
if (fSubtractFeeFromAmount && newTx)
transaction.reassignAmounts(nChangePosRet);