Fix setting emoji font

pull/939/head
Nicolas Werner 3 years ago
parent 7d2fe812a2
commit 3e958ea382
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 4
      src/UserSettingsPage.cpp

@ -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…
Cancel
Save