mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix setting emoji font
This commit is contained in:
parent
7d2fe812a2
commit
3e958ea382
1 changed files with 2 additions and 2 deletions
|
@ -1499,8 +1499,8 @@ UserSettingsModel::setData(const QModelIndex &index, const QVariant &value, int
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
case EmojiFont: {
|
case EmojiFont: {
|
||||||
if (value.userType() == QMetaType::QString) {
|
if (value.userType() == QMetaType::Int) {
|
||||||
i->setFontFamily(
|
i->setEmojiFontFamily(
|
||||||
fontDb.families(QFontDatabase::WritingSystem::Symbol).at(value.toInt()));
|
fontDb.families(QFontDatabase::WritingSystem::Symbol).at(value.toInt()));
|
||||||
return true;
|
return true;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue