Bug 948967 - Menu command status is not updated on calendar property changes. r=Decathlon
authorMakeMyDay <makemyday@gmx-topmail.de>
Thu, 02 Jan 2014 15:29:05 -0500
changeset 17119 b68211fc52a3683f29c2647c23d7d2908f2ae9a4
parent 17118 3950ef135724518871bc5bf4f5923eb8a759be9a
child 17120 2bee8b8fbb29a38a468ead39efc3149c1ca3c9bf
push id1103
push usermbanner@mozilla.com
push dateTue, 18 Mar 2014 07:44:06 +0000
treeherdercomm-beta@50c6279a0af0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersDecathlon
bugs948967
Bug 948967 - Menu command status is not updated on calendar property changes. r=Decathlon
calendar/base/content/widgets/calendar-list-tree.xml
--- a/calendar/base/content/widgets/calendar-list-tree.xml
+++ b/calendar/base/content/widgets/calendar-list-tree.xml
@@ -132,16 +132,17 @@
 
         onPropertyChanged: function cO_onPropertyChanged(aCalendar,
                                                          aName,
                                                          aValue,
                                                          aOldValue) {
             switch (aName) {
                 case "disabled":
                 case "readOnly":
+                    calendarUpdateNewItemsCommand();
                     document.commandDispatcher.updateCommands("calendar_commands");
                     break;
             }
         },
 
         onPropertyDeleting: function cO_onPropertyDeleting(aCalendar,
                                                             aName) {
         }