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/KeyPairUIDTab.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/KeyPairUIDTab.cpp')
-rw-r--r-- | src/ui/keypair_details/KeyPairUIDTab.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ui/keypair_details/KeyPairUIDTab.cpp b/src/ui/keypair_details/KeyPairUIDTab.cpp index 9e045daf..ce4256b8 100644 --- a/src/ui/keypair_details/KeyPairUIDTab.cpp +++ b/src/ui/keypair_details/KeyPairUIDTab.cpp @@ -38,16 +38,14 @@ KeyPairUIDTab::KeyPairUIDTab(GpgME::GpgContext *ctx, const GpgKey &key, QWidget setLayout(gridLayout); - connect(mCtx, SIGNAL(signalKeyDBChanged()), this, SLOT(slotRefreshUIDList())); - connect(mCtx, SIGNAL(signalKeyDBChanged()), this, SLOT(slotRefreshSigList())); - - connect(mCtx, SIGNAL(signalKeyUpdated(QString)), this, SLOT(slotRefreshUIDList())); - connect(mCtx, SIGNAL(signalKeyUpdated(QString)), this, SLOT(slotRefreshSigList())); + connect(mCtx, SIGNAL(signalKeyInfoChanged()), this, SLOT(slotRefreshUIDList())); + connect(mCtx, SIGNAL(signalKeyInfoChanged()), this, SLOT(slotRefreshSigList())); connect(uidList, SIGNAL(itemSelectionChanged()), this, SLOT(slotRefreshSigList())); - slotRefreshUIDList(); slotRefreshSigList(); + + setAttribute(Qt::WA_DeleteOnClose, true); } void KeyPairUIDTab::createUIDList() { @@ -172,7 +170,7 @@ void KeyPairUIDTab::slotAddSign() { return; } - auto keySignDialog = new KeySignDialog(mCtx, mKey, selected_uids, this); + auto keySignDialog = new KeyUIDSignDialog(mCtx, mKey, selected_uids, this); keySignDialog->show(); } |