Skip to content

Commit

Permalink
Merge pull request #6749 from spycrab/qt_gcontrols_crash
Browse files Browse the repository at this point in the history
Qt/GraphicsControls: Fix more random crashes
  • Loading branch information
delroth committed May 5, 2018
2 parents 5106724 + 300c397 commit 7986392
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ GraphicsBool::GraphicsBool(const QString& label, const Config::ConfigInfo<bool>&
QFont bf = font();
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
setFont(bf);

bool old = blockSignals(true);
setChecked(Config::Get(m_setting) ^ m_reverse);
blockSignals(old);
});
}

Expand Down
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt2/Config/Graphics/GraphicsChoice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ GraphicsChoice::GraphicsChoice(const QStringList& options, const Config::ConfigI
QFont bf = font();
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
setFont(bf);

bool old = blockSignals(true);
setCurrentIndex(Config::Get(m_setting));
blockSignals(old);
});
}

Expand Down
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt2/Config/Graphics/GraphicsRadio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ GraphicsRadioInt::GraphicsRadioInt(const QString& label, const Config::ConfigInf
QFont bf = font();
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
setFont(bf);

bool old = blockSignals(true);
setChecked(Config::Get(m_setting) == m_value);
blockSignals(old);
});
}

Expand Down

0 comments on commit 7986392

Please sign in to comment.