Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 4181145a authored by Laurent Montel's avatar Laurent Montel 😁

We depend against 5.41

parent 04044a34
......@@ -1589,13 +1589,9 @@ void KMComposerWin::setMessage(const KMime::Message::Ptr &newMsg, bool lastSignS
if (auto hdr = mMsg->headerByType("X-KMail-Dictionary")) {
const QString dictionary = hdr->asUnicodeString();
if (!dictionary.isEmpty()) {
#if SONNET_VERSION >= QT_VERSION_CHECK(5, 40, 0)
if (!mComposerBase->dictionary()->assignByDictionnary(dictionary)) {
mIncorrectIdentityFolderWarning->dictionaryInvalid();
}
#else
mComposerBase->dictionary()->setCurrentByDictionary(dictionary);
#endif
}
} else {
mComposerBase->dictionary()->setCurrentByDictionaryName(ident.dictionary());
......
Markdown is supported
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