diff options
author | Saturneric <[email protected]> | 2021-05-26 18:56:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-05-26 18:56:05 +0000 |
commit | 2f1b0b6af6c7c21134030d990a36f458d8a9600e (patch) | |
tree | e1ee1f16a0a03fe341156d2e1db3e42015fffce6 /src/ui/keypair_details/KeyDetailsDialog.cpp | |
parent | Improve the key information update mechanism (diff) | |
download | GpgFrontend-2f1b0b6af6c7c21134030d990a36f458d8a9600e.tar.gz GpgFrontend-2f1b0b6af6c7c21134030d990a36f458d8a9600e.zip |
Fix the wrong use of the signing key interface.
Fix the problem that the window or control is not deleted after it is closed.
Modify the names of some classes.
Extend the function of KeyList, add exclusion list.
Improve the message mechanism of GpgContext.
Fix the problem caused by incorrect API calls caused by incorrect understanding of the gpgme document.
Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'src/ui/keypair_details/KeyDetailsDialog.cpp')
-rw-r--r-- | src/ui/keypair_details/KeyDetailsDialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/keypair_details/KeyDetailsDialog.cpp b/src/ui/keypair_details/KeyDetailsDialog.cpp index 7b09471b..b93244e1 100644 --- a/src/ui/keypair_details/KeyDetailsDialog.cpp +++ b/src/ui/keypair_details/KeyDetailsDialog.cpp @@ -27,15 +27,15 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext *ctx, const GpgKey& key, QWidget *parent) : QDialog(parent) { - - tabWidget = new QTabWidget(this); - tabWidget->addTab(new KeyPairDetailTab(ctx, key, this), tr("KeyPair")); - tabWidget->addTab(new KeyPairUIDTab(ctx, key, this), tr("UIDs")); - tabWidget->addTab(new KeyPairSubkeyTab(ctx, key, this), tr("Subkeys")); + tabWidget = new QTabWidget(); + tabWidget->addTab(new KeyPairDetailTab(ctx, key, tabWidget), tr("KeyPair")); + tabWidget->addTab(new KeyPairUIDTab(ctx, key, tabWidget), tr("UIDs")); + tabWidget->addTab(new KeyPairSubkeyTab(ctx, key, tabWidget), tr("Subkeys")); auto *mainLayout = new QVBoxLayout; mainLayout->addWidget(tabWidget); + this->setAttribute(Qt::WA_DeleteOnClose, true); this->setLayout(mainLayout); this->setWindowTitle(tr("Key Details")); this->setModal(true); |