diff options
author | Saturneric <[email protected]> | 2022-01-03 18:33:35 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-03 18:33:35 +0000 |
commit | 9a4fa7019dde788dd337f406dc2d52e4c94b696c (patch) | |
tree | c8582139ce865c6f1ab35291d6e36618e09e1131 /src/ui/widgets/KeyList.cpp | |
parent | <feature>(ui): default sender gpg key settings in send mail. (diff) | |
download | GpgFrontend-9a4fa7019dde788dd337f406dc2d52e4c94b696c.tar.gz GpgFrontend-9a4fa7019dde788dd337f406dc2d52e4c94b696c.zip |
<fix, feature>(core, ui): add key in smart card support.
1.fix problem that when key is in a smart card, the result of FetchKey() is not equal with which provided by GetKey().
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp index 02a8dd92..89634f95 100644 --- a/src/ui/widgets/KeyList.cpp +++ b/src/ui/widgets/KeyList.cpp @@ -583,6 +583,11 @@ void KeyTable::Refresh(KeyLinkListPtr m_keys) { if (it->is_private_key() && !it->has_master_key()) { type_steam << "#"; } + + if(it->HasCardKey()) { + type_steam << "^"; + } + auto* tmp1 = new QTableWidgetItem(type_str); key_list->setItem(row_index, 1, tmp1); |