From fe67bfb777a79b25149efa3e045dc043dc144ad0 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Sun, 30 May 2021 03:28:40 +0800 Subject: New page and function for generating subkeys. Define the interface and functions of the subkey management tab. When there is an item in the UID list, the first item is selected by default. Compile the API for generating sub-keys and the corresponding calling thread. Set GpgGenKeyInfo to apply to the subkey Generate a subkey for the selected key pair of the management key pair interface. Adjust the project structure and add a new classification key generation category. Double-click the item in KeyList in the key pair management interface to enter the key details page. Adjust the title of the key pair management interface. Optimize part of the code of KeyGenThread. Signed-off-by: Saturneric --- src/ui/keypair_details/KeyPairUIDTab.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/keypair_details/KeyPairUIDTab.cpp') diff --git a/src/ui/keypair_details/KeyPairUIDTab.cpp b/src/ui/keypair_details/KeyPairUIDTab.cpp index 40316163..73cd0bdb 100644 --- a/src/ui/keypair_details/KeyPairUIDTab.cpp +++ b/src/ui/keypair_details/KeyPairUIDTab.cpp @@ -124,6 +124,11 @@ void KeyPairUIDTab::slotRefreshUIDList() { row++; } + + if(uidList->rowCount() > 0) { + uidList->selectRow(0); + } + slotRefreshSigList(); } -- cgit v1.2.3