mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(chat-settings): change order during chat-base-font UI initialization
Setting "currentFont" fires a "currentFontChanged" signal, causing the wrong font pixel-size. After changing the order, the values still overwrite the font settings - yet with the correct values. Probably all signals should be blocked in c'tor during initialization of the settings widget(s) to avoid overwriting any settings.
This commit is contained in:
parent
a01293f81e
commit
9ec5c11caa
@ -121,8 +121,9 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
||||
|
||||
bodyUI->transComboBox->setCurrentIndex(locales.indexOf(s.getTranslation()));
|
||||
|
||||
bodyUI->txtChatFont->setCurrentFont(s.getChatMessageFont());
|
||||
bodyUI->txtChatFontSize->setValue(s.getChatMessageFont().pixelSize());
|
||||
const QFont chatBaseFont = s.getChatMessageFont();
|
||||
bodyUI->txtChatFontSize->setValue(QFontInfo(chatBaseFont).pixelSize());
|
||||
bodyUI->txtChatFont->setCurrentFont(chatBaseFont);
|
||||
bodyUI->markdownComboBox->setCurrentIndex(s.getMarkdownPreference());
|
||||
bodyUI->cbAutorun->setChecked(s.getAutorun());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user