File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
22if (NOT EXISTS ${CMAKE_SOURCE_DIR} /cmake/modules/VersionInfo.cmake)
33 message (FATAL_ERROR "cmake submodule directory empty, did you 'git clone --recursive'?" )
44endif ()
5- project (qdigidoc4 VERSION 4.6.0 )
5+ project (qdigidoc4 VERSION 4.6.1 )
66
77set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} /cmake/modules)
88set (CMAKE_INCLUDE_CURRENT_DIR ON )
Original file line number Diff line number Diff line change @@ -209,7 +209,10 @@ QList<TokenData> QCNG::tokens() const
209209 continue ;
210210
211211 if (reader.isEmpty ())
212- reader = QString::fromUtf16 ((const char16_t *)prop (key, NCRYPT_READER_PROPERTY).data ());
212+ {
213+ if (QByteArray tmp = prop (key, NCRYPT_READER_PROPERTY); !tmp.isEmpty ())
214+ reader = QString::fromUtf16 ((const char16_t *)tmp.data ());
215+ }
213216 QString guid = prop (h, NCRYPT_SMARTCARD_GUID_PROPERTY).trimmed ();
214217 TokenData &t = result.emplaceBack ();
215218 t.setReader (reader);
You can’t perform that action at this time.
0 commit comments