diff options
author | Saturneric <[email protected]> | 2021-06-21 20:31:25 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-21 20:31:25 +0000 |
commit | b90ea800086973ae73bb4a4fd3427a90361ce383 (patch) | |
tree | b5e6f058d7ef310efc07a7ee584a22675fa486fc /src/ui/KeyImportDetailDialog.cpp | |
parent | Merge branch 'develop' (diff) | |
download | GpgFrontend-b90ea800086973ae73bb4a4fd3427a90361ce383.tar.gz GpgFrontend-b90ea800086973ae73bb4a4fd3427a90361ce383.zip |
Repair and improve the functions and UI related to the upload and update of the key server.
Improve part of the UI description.
Repair the problems in the project configuration file.
Diffstat (limited to '')
-rw-r--r-- | src/ui/KeyImportDetailDialog.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/ui/KeyImportDetailDialog.cpp b/src/ui/KeyImportDetailDialog.cpp index 4c60ad0f..3d8d1cdc 100644 --- a/src/ui/KeyImportDetailDialog.cpp +++ b/src/ui/KeyImportDetailDialog.cpp @@ -24,13 +24,17 @@ #include <ui/KeyImportDetailDialog.h> -KeyImportDetailDialog::KeyImportDetailDialog(GpgME::GpgContext *ctx, GpgImportInformation result, QWidget *parent) +KeyImportDetailDialog::KeyImportDetailDialog(GpgME::GpgContext *ctx, GpgImportInformation result, bool automatic, + QWidget *parent) : QDialog(parent) { mCtx = ctx; mResult = std::move(result); // If no key for import found, just show a message if (mResult.considered == 0) { - QMessageBox::information(nullptr, tr("Key import details"), tr("No keys found to import")); + if(automatic) + QMessageBox::information(nullptr, tr("Key Update Details"), tr("No keys found")); + else + QMessageBox::information(nullptr, tr("Key Import Details"), tr("No keys found to import")); return; } @@ -46,7 +50,11 @@ KeyImportDetailDialog::KeyImportDetailDialog(GpgME::GpgContext *ctx, GpgImportIn mvbox->addWidget(buttonBox); this->setLayout(mvbox); - this->setWindowTitle(tr("Key import details")); + if(automatic) + this->setWindowTitle(tr("Key Update Details")); + else + this->setWindowTitle(tr("Key Import Details")); + this->resize(QSize(600, 300)); this->setModal(true); this->exec(); @@ -54,7 +62,7 @@ KeyImportDetailDialog::KeyImportDetailDialog(GpgME::GpgContext *ctx, GpgImportIn void KeyImportDetailDialog::createGeneralInfoBox() { // GridBox for general import information - generalInfoBox = new QGroupBox(tr("Genral key import info")); + generalInfoBox = new QGroupBox(tr("General key info")); auto *generalInfoBoxLayout = new QGridLayout(generalInfoBox); generalInfoBoxLayout->addWidget(new QLabel(tr("Considered:")), 1, 0); |