Qt/GraphicsSlider: Fix random crashes

This commit is contained in:
spycrab 2018-05-03 14:31:34 +02:00
parent 467379c149
commit a61445919d
1 changed files with 3 additions and 0 deletions

View File

@ -23,7 +23,10 @@ GraphicsSlider::GraphicsSlider(int minimum, int maximum, const Config::ConfigInf
QFont bf = font();
bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base);
setFont(bf);
bool old = blockSignals(true);
setValue(Config::Get(m_setting));
blockSignals(old);
});
}