Commit 8ebe4e90cd044abbf0b978ae328afbb3fb247eea
Fix override color beeing saved
Reviewed-by: jbache
| |   |
| 1104 | 1104 | { |
| 1105 | 1105 | m_settings->beginGroup(QLatin1String(settingsGroup)); |
| 1106 | 1106 | |
| if (m_overrideColor.isValid()) |
| if (m_overrideColor.isValid()) { |
| 1108 | 1108 | Utils::StyleHelper::setBaseColor(m_overrideColor); |
| else |
| // Get adapted base color. |
| m_overrideColor = Utils::StyleHelper::baseColor(); |
| } else { |
| 1110 | 1112 | Utils::StyleHelper::setBaseColor(m_settings->value(QLatin1String(colorKey)).value<QColor>()); |
| } |
| 1111 | 1114 | |
| 1112 | 1115 | const QVariant geom = m_settings->value(QLatin1String(geometryKey)); |
| 1113 | 1116 | if (geom.isValid()) { |