Permalink
Browse files

Qt/GraphicsControls: Fix more random crashes

  • Loading branch information...
spycrab committed May 4, 2018
1 parent a5e410b commit 300c3970f3b81d064d3c018f742c474a5b608de5
@@ -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);
});
}
@@ -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);
});
}
@@ -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);
});
}

0 comments on commit 300c397

Please sign in to comment.