sessionMode: Fix left-over variable in _loadMode()

Commit da4238ec68 dropped a variable, but didn't replace all
consumers.

https://bugzilla.gnome.org/show_bug.cgi?id=720017
This commit is contained in:
Florian Müllner 2013-12-06 21:25:15 +01:00
parent d21aa0d85f
commit 46bac3069e

View File

@ -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;
}