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 ba909b09 authored by Krzysztof Nowicki's avatar Krzysztof Nowicki

Fix the build with <=sonnet-5.39

parent ed2b4ead
......@@ -1607,13 +1607,13 @@ 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_MINOR >= 40) {
if (!mComposerBase->dictionary()->assignDictionnaryName(dictionary)) {
mIncorrectIdentityFolderWarning->dictionaryInvalid();
}
} else {
mComposerBase->dictionary()->setCurrentByDictionary(dictionary);
#if SONNET_VERSION >= QT_VERSION_CHECK(5, 40, 0)
if (!mComposerBase->dictionary()->assignDictionnaryName(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