aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyList.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-24 04:50:42 +0000
committersaturneric <[email protected]>2024-01-24 04:50:42 +0000
commit9fa19d9dae8153ae360e666887fbd079620c5022 (patch)
tree5d1d3cabd54b1fadb0e7dec75b25aa3e446aa8a0 /src/ui/widgets/KeyList.cpp
parentfeat: improve key list and find widget (diff)
downloadGpgFrontend-9fa19d9dae8153ae360e666887fbd079620c5022.tar.gz
GpgFrontend-9fa19d9dae8153ae360e666887fbd079620c5022.zip
fix: solve an issue that switch tab but crypto menu won't update
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r--src/ui/widgets/KeyList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp
index e2152c5a..a9c8e38f 100644
--- a/src/ui/widgets/KeyList.cpp
+++ b/src/ui/widgets/KeyList.cpp
@@ -429,7 +429,7 @@ void KeyList::SetDoubleClickedAction(
this->m_action_ = std::move(action);
}
-QString KeyList::GetSelectedKey() {
+auto KeyList::GetSelectedKey() -> QString {
if (ui_->keyGroupTab->size().isEmpty()) return {};
const auto& buffered_keys =
m_key_tables_[ui_->keyGroupTab->currentIndex()].buffered_keys_;