mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
8d320ca3be
commit
56d656502c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user