Skip to content

Commit

Permalink
Update font info on restore default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kissaki committed Nov 2, 2015
1 parent 008a7f1 commit 8e896b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/mumble/LookConfig.cpp
Expand Up @@ -112,9 +112,13 @@ void LookConfig::updateFontInfo(QLabel *label, const QFont &font) {
}

void LookConfig::updateFontInfo() {
updateFontInfo(qlFontLogCurrent, s.qfFontLog);
updateFontInfo(qlFontInputCurrent, s.qfFontInput);
updateFontInfo(qlFontTreeCurrent, s.qfFontTree);
updateFontInfo(s);
}

void LookConfig::updateFontInfo(const Settings &r) {
updateFontInfo(qlFontLogCurrent, r.qfFontLog);
updateFontInfo(qlFontInputCurrent, r.qfFontInput);
updateFontInfo(qlFontTreeCurrent, r.qfFontTree);
}

QString LookConfig::title() const {
Expand Down Expand Up @@ -183,6 +187,8 @@ void LookConfig::load(const Settings &r) {
}
}

updateFontInfo(r);

loadComboBox(qcbAlwaysOnTop, r.aotbAlwaysOnTop);

loadComboBox(qcbExpand, r.ceExpand);
Expand Down
1 change: 1 addition & 0 deletions src/mumble/LookConfig.h
Expand Up @@ -57,6 +57,7 @@ class LookConfig : public ConfigWidget, Ui::LookConfig {
protected:
void updateFontInfo(QLabel *l, const QFont &f);
void updateFontInfo();
void updateFontInfo(const Settings &r);
void changeFont(QFont & font);
protected slots:
void on_qpbFontLog_clicked();
Expand Down

0 comments on commit 8e896b0

Please sign in to comment.