fix bug in settings considering uninitialized variable

This commit is contained in:
Olaf Leidinger 2014-08-15 20:30:03 +02:00
parent 93c04e30d9
commit f762648433

View File

@ -245,8 +245,9 @@ const TeaTimePrefsWidget = new Lang.Class({
if (this._settings.get_string(Utils.TEATIME_ALARM_SOUND_KEY) != this.alarmSoundFile.get_uri()) { if (this._settings.get_string(Utils.TEATIME_ALARM_SOUND_KEY) != this.alarmSoundFile.get_uri()) {
this._inhibitUpdate = true; this._inhibitUpdate = true;
Utils.playSound(this.alarmSoundFile.get_uri()); let uri=this.alarmSoundFile.get_uri();
Utils.playSound(uri);
this._settings.set_string(Utils.TEATIME_ALARM_SOUND_KEY, uri); this._settings.set_string(Utils.TEATIME_ALARM_SOUND_KEY, uri);
this._inhibitUpdate = false; this._inhibitUpdate = false;
} }