From f7626484334022387827082e043b953145f4c013 Mon Sep 17 00:00:00 2001 From: Olaf Leidinger Date: Fri, 15 Aug 2014 20:30:03 +0200 Subject: [PATCH] fix bug in settings considering uninitialized variable --- src/prefs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prefs.js b/src/prefs.js index 0c6a4ea..9db75c9 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -245,8 +245,9 @@ const TeaTimePrefsWidget = new Lang.Class({ if (this._settings.get_string(Utils.TEATIME_ALARM_SOUND_KEY) != this.alarmSoundFile.get_uri()) { 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._inhibitUpdate = false; }