also check for m_valid now
commit432358a5eb0155d2e42fda3eff2f0d3f194ea1f5
authorMichael Zanetti <michael.zanetti@canonical.com>
dateThu 14 Apr 2016, 17:04 (11 years ago)
parent01ec5bc
tests/mocks/GSettings.1.0/fake_gsettings.cpp+1−1
@@ -346,7 +346,7 @@ void GSettingsQml::setLauncherWidth(const QVariant &launcherWidth)
346346
347347void GSettingsQml::setEdgeDragWidth(const QVariant &edgeDragWidth)
348348{
349− if (m_schema->id() == "com.canonical.Unity8") {
349+ if (m_valid && m_schema->id() == "com.canonical.Unity8") {
350350 GSettingsControllerQml::instance()->setEdgeDragWidth(edgeDragWidth.toUInt());
351351 }
352352}