From 3eab6150cf6a53622c822a2c287405b66cf0eaf9 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Wed, 6 Jun 2018 11:42:41 +0200 Subject: [PATCH] fix emoji set combobox not loading from settings --- src/widgets/settingspages/appearancepage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/settingspages/appearancepage.cpp b/src/widgets/settingspages/appearancepage.cpp index 618bd0461..3945fca94 100644 --- a/src/widgets/settingspages/appearancepage.cpp +++ b/src/widgets/settingspages/appearancepage.cpp @@ -148,6 +148,8 @@ AppearancePage::AppearancePage() combo->addItems({"EmojiOne 2", "EmojiOne 3", "Twitter", "Facebook", "Apple", "Google", "Messenger"}); + combo->setCurrentText(getApp()->settings->emojiSet); + QObject::connect(combo, &QComboBox::currentTextChanged, [](const QString &str) { getApp()->settings->emojiSet = str; // });