From aef70152de8a2a7b5a8b558514566a7f6cd3746b 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 28e5b861a..4880fd2bb 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -459,6 +459,7 @@ const InputSourceIndicator = new Lang.Class({ this._inputSources = {}; this._ibusSources = {}; + this._currentSource = null; let inputSourcesByShortName = {};