Default to 0 if we cannot find the theme

CURA-3873
This commit is contained in:
Lipu Fei 2017-06-23 13:58:14 +02:00
parent 37162683e5
commit dbf0cf347c

View file

@ -237,6 +237,7 @@ UM.PreferencesPage
return i
}
}
return 0;
}
onActivated: UM.Preferences.setValue("general/theme", model.get(index).code)