Bug 329571 Error when setting composite calendar's default calendar with usePref==true, r=dmose
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@193346 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -236,8 +236,10 @@ calCompositeCalendar.prototype = {
|
||||
if (this.mDefaultCalendar && this.mDefaultCalendar.uri.equals(cal.uri))
|
||||
return;
|
||||
if (usePref && this.mPrefPrefix) {
|
||||
this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar,
|
||||
this.mDefaultPref);
|
||||
if (this.mDefaultCalendar) {
|
||||
this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar,
|
||||
this.mDefaultPref);
|
||||
}
|
||||
this.mCalMgr.setCalendarPref(cal, this.mDefaultPref,
|
||||
"true");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user