diff options
Diffstat (limited to 'framework/src/domain/composercontroller.cpp')
-rw-r--r-- | framework/src/domain/composercontroller.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/src/domain/composercontroller.cpp b/framework/src/domain/composercontroller.cpp index 5ac8adf1..c20c2b0f 100644 --- a/framework/src/domain/composercontroller.cpp +++ b/framework/src/domain/composercontroller.cpp | |||
@@ -113,7 +113,13 @@ public: | |||
113 | void findKey(const QString &addressee, QStandardItem *item) | 113 | void findKey(const QString &addressee, QStandardItem *item) |
114 | { | 114 | { |
115 | SinkLog() << "Searching key for: " << addressee; | 115 | SinkLog() << "Searching key for: " << addressee; |
116 | auto keys = MailCrypto::findKeys(QStringList{} << addressee, false, MailCrypto::OPENPGP); | 116 | auto keys = MailCrypto::findKeys(QStringList{} << addressee, false, false, MailCrypto::OPENPGP); |
117 | if (keys.empty()) { | ||
118 | //Search for key on remote server if it's missing and import | ||
119 | //TODO: this is blocking and thus blocks the UI | ||
120 | keys = MailCrypto::findKeys(QStringList{} << addressee, false, true, MailCrypto::OPENPGP); | ||
121 | MailCrypto::importKeys(keys); | ||
122 | } | ||
117 | if (item) { | 123 | if (item) { |
118 | if (!keys.empty()) { | 124 | if (!keys.empty()) { |
119 | if (keys.size() > 1 ) { | 125 | if (keys.size() > 1 ) { |