Commit 8ebe4e90 authored by Tobias Hunger's avatar Tobias Hunger

Fix override color beeing saved

Reviewed-by: jbache
parent 9a51a371
......@@ -1104,10 +1104,13 @@ void MainWindow::readSettings()
{
m_settings->beginGroup(QLatin1String(settingsGroup));
if (m_overrideColor.isValid())
if (m_overrideColor.isValid()) {
Utils::StyleHelper::setBaseColor(m_overrideColor);
else
// Get adapted base color.
m_overrideColor = Utils::StyleHelper::baseColor();
} else {
Utils::StyleHelper::setBaseColor(m_settings->value(QLatin1String(colorKey)).value<QColor>());
}
const QVariant geom = m_settings->value(QLatin1String(geometryKey));
if (geom.isValid()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment