diff --git a/src/qt/pivx/coldstakingwidget.cpp b/src/qt/pivx/coldstakingwidget.cpp index a2121956a70f30..7b84271c59d0c6 100644 --- a/src/qt/pivx/coldstakingwidget.cpp +++ b/src/qt/pivx/coldstakingwidget.cpp @@ -422,6 +422,16 @@ void ColdStakingWidget::onSendClicked(){ if (!isOwnerAddressFromThisWallet) { isOwnerAddressFromThisWallet = walletModel->isMine(inputOwner); + + // Warn the user if the owner address is not from this wallet + if (!isOwnerAddressFromThisWallet && + !ask(tr("ALERT!"), + tr("The owner address is not from this wallet!\n\n" + "If you continue and you don't have the address's ownership in\nanother device (like a hardware wallet or a piece of paper)\nthen you will NOT be able to spend back your coins!\n\n" + "Are you absolutely sure?")) + ) { + return; + } } // Don't try to delegate the balance if both addresses are from this wallet