aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui/dialog/controller/SmartCardControllerDialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/dialog/controller/SmartCardControllerDialog.cpp b/src/ui/dialog/controller/SmartCardControllerDialog.cpp
index 530f2e7e..a029dcbd 100644
--- a/src/ui/dialog/controller/SmartCardControllerDialog.cpp
+++ b/src/ui/dialog/controller/SmartCardControllerDialog.cpp
@@ -337,6 +337,11 @@ void SmartCardControllerDialog::print_smart_card_info() {
}
void SmartCardControllerDialog::slot_refresh() {
+ scd_version_supported_ =
+ GpgSmartCardManager::GetInstance(channel_).IsSCDVersionSupported();
+ if (scd_version_supported_ && !timer_->isActive()) {
+ timer_->start(3000);
+ }
fetch_smart_card_info(ui_->currentCardComboBox->currentText());
}