Windows : Fix special characters in messages + build languages

This commit is contained in:
Julien Wadel 2021-08-19 17:57:15 +02:00
parent 029fba05e0
commit 2307c7ba82
2 changed files with 8 additions and 7 deletions

View file

@ -77,10 +77,11 @@ add_custom_target(update_translations
# Remove `*.qm` when `clean` is called.
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${QM_FILES}")
if (WIN32)
# Workaround: Create empty files for some cmake versions. Otherwise, the qm rules can't be used.
# foreach (qm ${QM_FILES})
# if (NOT EXISTS "${qm}")
# file(GENERATE OUTPUT "${qm}" CONTENT "")
# endif()
# endforeach()
foreach (qm ${QM_FILES})
if (NOT EXISTS "${qm}")
file(GENERATE OUTPUT "${qm}" CONTENT "")
endif()
endforeach()
endif()

View file

@ -332,7 +332,7 @@ ChatMessageModel::ChatMessageModel ( std::shared_ptr<linphone::ChatMessage> chat
QString txt;
for(auto content : contents){
if(content->isText())
txt += Utils::coreStringToAppString(content->getUtf8Text());
txt += content->getUtf8Text().c_str();
}
mContent = txt;
//mIsOutgoing = chatMessage->isOutgoing() || chatMessage->getState() == linphone::ChatMessage::State::Idle;