Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Fix bug where pending is added as simple send regardless of type
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras-crypto committed Mar 18, 2017
1 parent e2a5e6e commit ad783e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qt/sendmpdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@ void SendMPDialog::sendMPTransaction()
if (!autoCommit) {
PopulateSimpleDialog(rawHex, "Raw Hex (auto commit is disabled)", "Raw transaction hex");
} else {
PendingAdd(txid, fromAddress.ToString(), MSC_TYPE_SIMPLE_SEND, propertyId, sendAmount);
if (typeId == MSC_TYPE_SIMPLE_SEND) {
PendingAdd(txid, fromAddress.ToString(), MSC_TYPE_SIMPLE_SEND, propertyId, sendAmount);
}
PopulateTXSentDialog(txid.GetHex());
}
}
Expand Down

0 comments on commit ad783e9

Please sign in to comment.