Commit f8d02bcb authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

only refresh keys after importing if at least one key was received

Otherwise all keys would have been reloaded when nothing was actually changed.
parent a30d9bd8
......@@ -2180,11 +2180,11 @@ void KeysManager::importRemoteFinished(int result)
KGpgReceiveKeys *t = qobject_cast<KGpgReceiveKeys *>(sender());
Q_ASSERT(t != Q_NULLPTR);
const QStringList keys(KGpgImport::getImportedIds(t->getLog()));
const QStringList keys = KGpgImport::getImportedIds(t->getLog());
t->deleteLater();
if (result == KGpgTransaction::TS_OK)
if ((result == KGpgTransaction::TS_OK) && !keys.isEmpty())
imodel->refreshKeys(keys);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment