From 46bac3069e9471dee8d92a86cc2170ca7d3276bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 6 Dec 2013 21:25:15 +0100 Subject: [PATCH] sessionMode: Fix left-over variable in _loadMode() Commit da4238ec681c7ca dropped a variable, but didn't replace all consumers. https://bugzilla.gnome.org/show_bug.cgi?id=720017 --- js/ui/sessionMode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index 510adc5f4..9670c23a4 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -120,10 +120,10 @@ function _loadMode(file, info) { _modes[modeName] = {}; let propBlacklist = ['unlockDialog']; - for (let prop in loadedData[DEFAULT_MODE]) { + for (let prop in _modes[DEFAULT_MODE]) { if (newMode[prop] !== undefined && propBlacklist.indexOf(prop) == -1) - loadedData[modeName][prop] = newMode[prop]; + _modes[modeName][prop] = newMode[prop]; } _modes[modeName]['isPrimary'] = true; }