1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix: Fix problem with unicode symbols on FreeBSD

Fix #4012
This commit is contained in:
Diadlo 2016-12-27 23:13:06 +03:00
parent 8d320ca3be
commit 56d656502c
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -83,7 +83,14 @@ QStringList SmileyPack::loadDefaultPaths()
paths.append('.' + QDir::separator() + EMOTICONS_SUB_DIR);
// qTox exclusive emoticons
for(auto qtoxPath : QStandardPaths::standardLocations(QStandardPaths::DataLocation))
QStandardPaths::StandardLocation location;
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
location = QStandardPaths::AppDataLocation;
#else
#warning "Qt < 5.4.0 has a trouble with unicode symbols in path on few systems"
location = QStandardPaths::DataLocation;
#endif
for(auto qtoxPath : QStandardPaths::standardLocations(location))
{
qtoxPath += QDir::separator() + EMOTICONS_SUB_DIR;
if(!paths.contains(qtoxPath))