Skip to content

Commit

Permalink
Fixed Multisend dialog to show settings properly
Browse files Browse the repository at this point in the history
Multisend will display a message if it has only been enabled for masternodes and if its enabled for both (Displaying this didnt work if multisend was only enabled for masternodes)
  • Loading branch information
Raikzer authored Apr 22, 2018
1 parent aedf80b commit 40baa7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qt/multisenddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ void MultiSendDialog::on_viewButton_clicked()
std::pair<std::string, int> pMultiSend;
std::string strMultiSendPrint = "";
if (pwalletMain->isMultiSendEnabled()) {
if (pwalletMain->fMultiSendStake)
strMultiSendPrint += "MultiSend Active for Stakes\n";
if (pwalletMain->fMultiSendStake && pwalletMain->fMultiSendMasternodeReward)
strMultiSendPrint += "MultiSend Active for Stakes and Masternode Reward\n";
else if (pwalletMain->fMultiSendStake)
strMultiSendPrint += "MultiSend Active for Stakes\n";
else if (pwalletMain->fMultiSendMasternodeReward)
strMultiSendPrint += "MultiSend Active for Masternode Rewards\n";
} else
strMultiSendPrint += "MultiSend Not Active\n";
Expand Down

0 comments on commit 40baa7d

Please sign in to comment.