aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-17 20:56:49 +0000
committersaturneric <[email protected]>2025-04-17 20:56:49 +0000
commitaba0c606f364b8c2ed75416e3d24b3cb3868db38 (patch)
tree990e39802b9cb4bb3e817298c7d1cc73c2cab77f /src
parentfix: qt5 build issues (diff)
parentchore: update german translations (diff)
downloadGpgFrontend-aba0c606f364b8c2ed75416e3d24b3cb3868db38.tar.gz
GpgFrontend-aba0c606f364b8c2ed75416e3d24b3cb3868db38.zip
Merge branch 'develop' of ssh://ssh.git.bktus.com:2222/GpgFrontend/GpgFrontend into develop
Diffstat (limited to 'src')
-rw-r--r--src/core/GpgCoreInit.cpp2
-rw-r--r--src/ui/dialog/controller/SmartCardControllerDialog.cpp22
2 files changed, 15 insertions, 9 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp
index 18fa2965..b544d071 100644
--- a/src/core/GpgCoreInit.cpp
+++ b/src/core/GpgCoreInit.cpp
@@ -524,7 +524,7 @@ auto InitGpgFrontendCore(CoreInitArgs args) -> int {
<< "GpgFrontend cannot start under this situation!";
Module::UpsertRTValue("core", "env.state.ctx", -1);
CoreSignalStation::GetInstance()->SignalBadGnupgEnv(
- QCoreApplication::tr("No valid KEy Database"));
+ QCoreApplication::tr("No valid Key Database"));
}
// load default context
diff --git a/src/ui/dialog/controller/SmartCardControllerDialog.cpp b/src/ui/dialog/controller/SmartCardControllerDialog.cpp
index 530f2e7e..73dd48b9 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());
}
@@ -459,14 +464,15 @@ void SmartCardControllerDialog::slot_fetch_smart_card_keys() {
auto AskIsoDisplayName(QWidget* parent, bool* ok) -> QString {
QString surname = QInputDialog::getText(
- parent, QObject::tr("Cardholder's Surname"),
- QObject::tr("Please enter your surname (e.g., Lee):"), QLineEdit::Normal,
- "", ok);
+ parent, SmartCardControllerDialog::tr("Cardholder's Surname"),
+ SmartCardControllerDialog::tr("Please enter your surname (e.g., Lee):"),
+ QLineEdit::Normal, "", ok);
if (!*ok || surname.trimmed().isEmpty()) return {};
QString given_name = QInputDialog::getText(
- parent, QObject::tr("Cardholder's Given Name"),
- QObject::tr("Please enter your given name (e.g., Chris):"),
+ parent, SmartCardControllerDialog::tr("Cardholder's Given Name"),
+ SmartCardControllerDialog::tr(
+ "Please enter your given name (e.g., Chris):"),
QLineEdit::Normal, "", ok);
if (!*ok || given_name.trimmed().isEmpty()) return {};
@@ -474,9 +480,9 @@ auto AskIsoDisplayName(QWidget* parent, bool* ok) -> QString {
iso_name.replace(" ", "<");
if (iso_name.length() > 39) {
- QMessageBox::warning(
- parent, QObject::tr("Too Long"),
- QObject::tr("Combined name too long (max 39 characters)."));
+ QMessageBox::warning(parent, SmartCardControllerDialog::tr("Too Long"),
+ SmartCardControllerDialog::tr(
+ "Combined name too long (max 39 characters)."));
*ok = false;
return {};
}