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:
jminta%gmail.com
2006-03-31 21:19:12 +00:00
parent 76bc257cc6
commit 4480abca4c

View File

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