Merge pull request #6749 from spycrab/qt_gcontrols_crash
Qt/GraphicsControls: Fix more random crashes
This commit is contained in:
commit
798639291f
|
@ -20,7 +20,10 @@ GraphicsBool::GraphicsBool(const QString& label, const Config::ConfigInfo<bool>&
|
||||||
QFont bf = font();
|
QFont bf = font();
|
||||||
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
|
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
|
||||||
setFont(bf);
|
setFont(bf);
|
||||||
|
|
||||||
|
bool old = blockSignals(true);
|
||||||
setChecked(Config::Get(m_setting) ^ m_reverse);
|
setChecked(Config::Get(m_setting) ^ m_reverse);
|
||||||
|
blockSignals(old);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,10 @@ GraphicsChoice::GraphicsChoice(const QStringList& options, const Config::ConfigI
|
||||||
QFont bf = font();
|
QFont bf = font();
|
||||||
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
|
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
|
||||||
setFont(bf);
|
setFont(bf);
|
||||||
|
|
||||||
|
bool old = blockSignals(true);
|
||||||
setCurrentIndex(Config::Get(m_setting));
|
setCurrentIndex(Config::Get(m_setting));
|
||||||
|
blockSignals(old);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,10 @@ GraphicsRadioInt::GraphicsRadioInt(const QString& label, const Config::ConfigInf
|
||||||
QFont bf = font();
|
QFont bf = font();
|
||||||
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
|
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
|
||||||
setFont(bf);
|
setFont(bf);
|
||||||
|
|
||||||
|
bool old = blockSignals(true);
|
||||||
setChecked(Config::Get(m_setting) == m_value);
|
setChecked(Config::Get(m_setting) == m_value);
|
||||||
|
blockSignals(old);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue