diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 6b7d5de4c3..03216021f3 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -462,13 +462,13 @@ MigrateLelantusToSparkDialog::MigrateLelantusToSparkDialog(WalletModel *_model): void MigrateLelantusToSparkDialog::onIgnoreClicked() { setVisible(false); - clickedButton = false; + clickedButton = true; } void MigrateLelantusToSparkDialog::onMigrateClicked() { setVisible(false); - clickedButton = true; + clickedButton = false; model->migrateLelantusToSpark(); } diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 3f514961f7..10e1e91db9 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -323,7 +323,7 @@ void SendCoinsDialog::on_sendButton_clicked() if (model->getLelantusModel()->getPrivateBalance().first > 0 && spark::IsSparkAllowed() && chainActive.Height() < ::Params().GetConsensus().nLelantusGracefulPeriod) { MigrateLelantusToSparkDialog migrateLelantusToSpark(model); bool clickedButton = migrateLelantusToSpark.getClickedButton(); - if(clickedButton) { + if(!clickedButton) { fNewRecipientAllowed = true; return; } @@ -343,7 +343,7 @@ void SendCoinsDialog::on_sendButton_clicked() if (spark::IsSparkAllowed()) { SendGoPrivateDialog goPrivateDialog; bool clickedButton = goPrivateDialog.getClickedButton(); - if (clickedButton) { + if (!clickedButton) { setAnonymizeMode(true); fNewRecipientAllowed = true; return;