From: tobtoht Date: Fri, 12 May 2023 17:31:22 +0000 (+0200) Subject: wizard: macos: fix button inversion X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=4b43e49c6faeafc394970a8bcce6cbbad0cd5829;p=gamesguru%2Ffeather.git wizard: macos: fix button inversion --- diff --git a/src/wizard/PageWalletSeed.cpp b/src/wizard/PageWalletSeed.cpp index 18e7693a..a0319dc6 100644 --- a/src/wizard/PageWalletSeed.cpp +++ b/src/wizard/PageWalletSeed.cpp @@ -126,11 +126,11 @@ bool PageWalletSeed::validatePage() { "• Never type it on a website\n" "• Store it safely (offline)\n" "• Do not lose your seed!"); - seedWarning.addButton("Go back", QMessageBox::RejectRole); + auto btn_goBack = seedWarning.addButton("Go back", QMessageBox::RejectRole); seedWarning.addButton("I understand", QMessageBox::AcceptRole); - int res = seedWarning.exec(); - if (res == QMessageBox::Rejected) { + seedWarning.exec(); + if (seedWarning.clickedButton() == btn_goBack) { return false; }