wizard: macos: fix button inversion

This commit is contained in:
tobtoht 2023-05-12 19:31:22 +02:00
parent 477bae88d6
commit 4b43e49c6f
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -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;
}