Skip to content

Commit b05e23b

Browse files
committed
fix(ui): add break to switch so that auth page becomes visible, set focus to pinInput
1 parent ff73fc0 commit b05e23b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ui/webeiddialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ void WebEidDialog::onSingleCertificateReady(const QUrl& origin,
215215
tr("By confirming authentication, I agree to submit my name and personal "
216216
"identification number to the website"));
217217
ui->pinTitleLabel->setText(tr("Please enter authentication PIN (PIN 1):"));
218+
break;
218219
case CommandType::SIGN:
219220
ui->pinInputCertificateInfo->setCertificateInfo(certAndPin);
220221
ui->pinInputPageTitleLabel->setText(tr("Sign"));
@@ -302,6 +303,7 @@ void WebEidDialog::onVerifyPinFailed(const electronic_id::VerifyPinFailed::Statu
302303
onRetryImpl(message);
303304
} else {
304305
ui->pinInput->show();
306+
ui->pinInput->setFocus();
305307
ui->pinTitleLabel->show();
306308
ui->okButton->setDisabled(true);
307309
ui->cancelButton->setEnabled(true);
@@ -415,6 +417,9 @@ void WebEidDialog::displayPinRetriesRemaining(PinInfo::PinRetriesCount pinRetrie
415417
ui->pinErrorLabel->setText(tr("%n retries left", nullptr, int(pinRetriesCount.first)));
416418
ui->pinErrorLabel->show();
417419
}
420+
if (!ui->pinEntryTimeoutProgressBar->isVisible()) {
421+
ui->pinInput->setFocus();
422+
}
418423
}
419424

420425
void WebEidDialog::displayPinBlockedError()

0 commit comments

Comments
 (0)