aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r--src/ui/widgets/KeyList.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp
index 337c1fc5..2fdec43e 100644
--- a/src/ui/widgets/KeyList.cpp
+++ b/src/ui/widgets/KeyList.cpp
@@ -385,3 +385,14 @@ void KeyList::uploadFinished()
reply->deleteLater();
}
+
+void KeyList::getCheckedKeys(QVector<GpgKey> &keys) {
+
+ keys.clear();
+
+ for (int i = 0; i < mKeyList->rowCount(); i++) {
+ if (mKeyList->item(i, 0)->isSelected() == 1) {
+ keys.push_back(buffered_keys[i]);
+ }
+ }
+}