Fix bug 474638 - Snooze or dismiss of alarms doesn't work (regression). r=philipp
authorStefan Sitter <ssitter@gmail.com>
Wed, 21 Jan 2009 20:48:01 +0100
changeset 1709 7fdf4014635ad21ab51a3f628ba29713e85fd411
parent 1708 2f26a01e4b3651392dd3890559d748e009b52d7c
child 1710 97116d16d5a630c6203af560371c33be3591c324
push id1370
push usermozilla@kewis.ch
push dateWed, 21 Jan 2009 19:50:11 +0000
treeherdercomm-central@7fdf4014635a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp
bugs474638
Fix bug 474638 - Snooze or dismiss of alarms doesn't work (regression). r=philipp
calendar/base/src/calAlarmMonitor.js
--- a/calendar/base/src/calAlarmMonitor.js
+++ b/calendar/base/src/calAlarmMonitor.js
@@ -33,17 +33,17 @@
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 function peekAlarmWindow() {
     var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"]
                                    .getService(Components.interfaces.nsIWindowMediator);
-    return windowMediator.getMostRecentWindow("calendarAlarmWindow");
+    return windowMediator.getMostRecentWindow("Calendar:AlarmWindow");
 }
 
 function calAlarmServiceObserver() {
     this.wrappedJSObject = this;
     this.mAlarmService = Components.classes["@mozilla.org/calendar/alarm-service;1"]
                                    .getService(Components.interfaces.calIAlarmService);
     this.mAlarmItems = [];
 }