From a1b3c2e1c322a1f6688c878fa6fe6d4ad9a9f933 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Thu, 5 Feb 2026 10:41:42 +0200 Subject: [PATCH] Revert review change WE2-1136 Signed-off-by: Raul Metsma --- src/controller/controller.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/controller/controller.cpp b/src/controller/controller.cpp index 014261fe..61ce39df 100644 --- a/src/controller/controller.cpp +++ b/src/controller/controller.cpp @@ -93,15 +93,6 @@ void Controller::run() commandHandler = getCommandHandler(*command); - // When the command handler run thread retrieves certificates successfully, call - // onCertificatesLoaded() that starts card event monitoring while user enters the PIN. - connect(commandHandler.get(), &CommandHandler::singleCertificateReady, this, - &Controller::onCertificatesLoaded); - connect(commandHandler.get(), &CommandHandler::multipleCertificatesReady, this, - &Controller::onCertificatesLoaded); - connect(commandHandler.get(), &CommandHandler::verifyPinFailed, this, - &Controller::onCertificatesLoaded); - startCommandExecution(); } catch (const std::exception& error) { @@ -122,6 +113,14 @@ void Controller::startCommandExecution() connect(waitForCardThread, &WaitForCardThread::statusUpdate, this, &Controller::statusUpdate); connect(waitForCardThread, &WaitForCardThread::cardsAvailable, this, &Controller::onCardsAvailable); + // When the command handler run thread retrieves certificates successfully, call + // onCertificatesLoaded() that starts card event monitoring while user enters the PIN. + connect(commandHandler.get(), &CommandHandler::singleCertificateReady, this, + &Controller::onCertificatesLoaded); + connect(commandHandler.get(), &CommandHandler::multipleCertificatesReady, this, + &Controller::onCertificatesLoaded); + connect(commandHandler.get(), &CommandHandler::verifyPinFailed, this, + &Controller::onCertificatesLoaded); // UI setup. createWindow();