# HG changeset patch
# User Stefan Sitter <ssitter@gmail.com>
# Date 1464287955 -7200
#      Thu May 26 20:39:15 2016 +0200
# Branch THUNDERBIRD3880_2016050308_RELBRANCH
# Node ID 907e7eb144fba96615f04851fdc5e538cea5c6a5
# Parent  538859cb579ac1443c54220d4458320e8f6a2c74
Bug 1260768 - showError() function is broken;r+a=philipp

diff --git a/calendar/base/src/calUtils.js b/calendar/base/src/calUtils.js
--- a/calendar/base/src/calUtils.js
+++ b/calendar/base/src/calUtils.js
@@ -1004,19 +1004,19 @@
 
 /**
  * Uses the prompt service to display an error message.
  * This function cannot be migrated into a module file, because it relies on an outer window object.
  *
  * @param aMsg The message to be shown
  */
 function showError(aMsg) {
-    let window = window || null;
-    if (window) {
-        Services.prompt.alert(window, calGetString("calendar", "genericErrorTitle"), aMsg);
+    let wnd = window || null;
+    if (wnd) {
+        Services.prompt.alert(wnd, calGetString("calendar", "genericErrorTitle"), aMsg);
     }
 }
 
 /**
  * Pick whichever of "black" or "white" will look better when used as a text
  * color against a background of bgColor.
  *
  * @param bgColor   the background color as a "#RRGGBB" string
