diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 021518b15..f77420712 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -185,10 +185,13 @@ jobs: arch: x64 - name: Install WiX run: | - dotnet tool install -g wix --version 5.0.0 - wix extension -g add WixToolset.UI.wixext/5.0.0 + dotnet tool install -g wix --version 5.0.2 + wix extension -g add WixToolset.UI.wixext/5.0.2 - name: Build run: | + if ($env:VCToolsRedistDir -eq $null) { + $env:VCToolsRedistDir = -join ($env:VCINSTALLDIR, "Redist\MSVC\", $env:VCToolsVersion, "\") + } cmake "-GNinja" -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo ` -DCMAKE_TOOLCHAIN_FILE=${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ` "-DLibDigiDocpp_ROOT=libs/PFiles64/libdigidocpp" diff --git a/client/MainWindow_MyEID.cpp b/client/MainWindow_MyEID.cpp index 2e9aa5b7d..cce17ae86 100644 --- a/client/MainWindow_MyEID.cpp +++ b/client/MainWindow_MyEID.cpp @@ -95,7 +95,8 @@ bool MainWindow::validateCardError(QSmartCardData::PinType type, QSmartCardData: switch( err ) { case QSmartCard::NoError: return true; - case QSmartCard::CancelError: + case QSmartCard::CancelError: break; + case QSmartCard::TimeoutError: FadeInNotification::warning(ui->topBar, tr("%1 timeout").arg(QSmartCardData::typeString(type))); break; case QSmartCard::BlockedError: diff --git a/client/QSmartCard.cpp b/client/QSmartCard.cpp index c1cebe675..a0ec16baa 100644 --- a/client/QSmartCard.cpp +++ b/client/QSmartCard.cpp @@ -319,7 +319,7 @@ QSmartCard::ErrorType QSmartCard::Private::handlePinResult(QPCSCReader *reader, case 0x63C1: // Validate error, 1 tries left case 0x63C2: // Validate error, 2 tries left case 0x63C3: return QSmartCard::ValidateError; - case 0x6400: // Timeout (SCM) + case 0x6400: return QSmartCard::TimeoutError; // Timeout (SCM) case 0x6401: return QSmartCard::CancelError; // Cancel (OK, SCM) case 0x6402: return QSmartCard::DifferentError; case 0x6403: return QSmartCard::LenghtError; diff --git a/client/QSmartCard.h b/client/QSmartCard.h index 6aa978480..645c59086 100644 --- a/client/QSmartCard.h +++ b/client/QSmartCard.h @@ -42,7 +42,7 @@ class QSmartCardData DocumentId = 7, Expiry = 8, }; - enum PinType : char + enum PinType : quint8 { Pin1Type = 1, Pin2Type, @@ -89,6 +89,7 @@ class QSmartCard final: public QObject NoError, UnknownError, BlockedError, + TimeoutError, CancelError, DifferentError, LenghtError,