From d18e084cd5c8661f5e935e5a098723310075c88b Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 24 Apr 2013 21:38:00 +0200 Subject: [PATCH] Keyboard: clear currentSource after destruction StLabel doesn't like that we set its properties after destructions, and this would happen in currentInputSourceChanged() at the end, when setting the ornament. --- js/ui/status/keyboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index d5171da33..bb67c71ff 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -520,6 +520,7 @@ const InputSourceIndicator = new Lang.Class({ this._inputSources = {}; this._ibusSources = {}; + this._currentSource = null; let inputSourcesByShortName = {};