Fix setting emoji font

This commit is contained in:
Nicolas Werner 2022-02-12 23:06:45 +01:00
parent 7d2fe812a2
commit 3e958ea382
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -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