aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyPairSubkeyTab.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-04 19:17:53 +0000
committerSaturneric <[email protected]>2021-07-04 19:17:53 +0000
commitfe2f448d517bb0f7d37c22fe99b2bd13ef1a61c3 (patch)
tree952ad3bc8cb5f76c0d1e02792a62a3825ef6fdf0 /src/ui/keypair_details/KeyPairSubkeyTab.cpp
parentAdjust and improve the basic settings page (diff)
parentUpdate Github Action Files. (diff)
downloadGpgFrontend-fe2f448d517bb0f7d37c22fe99b2bd13ef1a61c3.tar.gz
GpgFrontend-fe2f448d517bb0f7d37c22fe99b2bd13ef1a61c3.zip
Merge branch 'main' into develop
Diffstat (limited to '')
-rw-r--r--src/ui/keypair_details/KeyPairSubkeyTab.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/keypair_details/KeyPairSubkeyTab.cpp b/src/ui/keypair_details/KeyPairSubkeyTab.cpp
index c5647553..70c7e4b8 100644
--- a/src/ui/keypair_details/KeyPairSubkeyTab.cpp
+++ b/src/ui/keypair_details/KeyPairSubkeyTab.cpp
@@ -222,7 +222,7 @@ void KeyPairSubkeyTab::slotRefreshSubkeyDetail() {
}
void KeyPairSubkeyTab::createSubkeyOperaMenu() {
- subkeyOperaMenu = new QMenu();
+ subkeyOperaMenu = new QMenu(this);
// auto *revokeSubkeyAct = new QAction(tr("Revoke Subkey"));
auto *editSubkeyAct = new QAction(tr("Edit Expire Date"));
connect(editSubkeyAct, SIGNAL(triggered(bool)), this, SLOT(slotEditSubkey()));
@@ -232,6 +232,7 @@ void KeyPairSubkeyTab::createSubkeyOperaMenu() {
}
void KeyPairSubkeyTab::slotEditSubkey() {
+ qDebug() << "Slot Edit Subkry";
auto *subkey = getSelectedSubkey();
if(subkey == buffered_subkeys[0]) {
subkey = nullptr;
@@ -245,7 +246,7 @@ void KeyPairSubkeyTab::slotRevokeSubkey() {
}
void KeyPairSubkeyTab::contextMenuEvent(QContextMenuEvent *event) {
- if (subkeyList->selectedItems().length() > 0) {
+ if (!subkeyList->selectedItems().isEmpty()) {
subkeyOperaMenu->exec(event->globalPos());
}
}