aboutsummaryrefslogtreecommitdiffstats
path: root/keylist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keylist.cpp')
-rw-r--r--keylist.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/keylist.cpp b/keylist.cpp
index c098ba4..64f5044 100644
--- a/keylist.cpp
+++ b/keylist.cpp
@@ -194,6 +194,16 @@ QStringList *KeyList::getSelected()
return ret;
}
+bool KeyList::containsPrivateKeys()
+{
+ for (int i = 0; i < mKeyList->rowCount(); i++) {
+ if (mKeyList->item(i, 1)) {
+ return true;
+ }
+ }
+ return false;
+}
+
void KeyList::setColumnWidth(int row, int size)
{
mKeyList->setColumnWidth(row, size);