summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-21 18:02:09 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-21 18:02:09 (GMT)
commita30d9bd811a32bdb7d2d74774479fd511e425169 (patch)
treea8d4164a9e6e36b0a2ff9ded22a05da395d23c1d
parentbd77e34edf0c05dbb425ff180135440e4bb6d691 (diff)
only refresh keys after signing if at least one key was signed
Otherwise all keys would have been reloaded when nothing was actually changed.
-rw-r--r--keysmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/keysmanager.cpp b/keysmanager.cpp
index 4ce0f04..3bce780 100644
--- a/keysmanager.cpp
+++ b/keysmanager.cpp
@@ -2024,7 +2024,8 @@ void KeysManager::signatureResult(int success)
if (++keyCount == signList.count()) {
signList.clear();
- imodel->refreshKeys(refreshList);
+ if (!refreshList.isEmpty())
+ imodel->refreshKeys(refreshList);
refreshList.clear();
} else {
signLoop(localsign, checklevel);