Closed Bug 552042 Opened 14 years ago Closed 14 years ago

Calendar registry not written after creating/deleting calendar

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Fallen, Assigned: Fallen)

Details

(Keywords: dataloss)

Attachments

(1 file)

Attached patch Fix - v1 β€” β€” Splinter Review
STR:

1. Create a new calendar
2. Crash (Ctrl+C in console works too)
3. Restart

Actual Result:
* The prefs file is not written so the calendar is gone

Expected
* The prefs file should be written right away to avoid dataloss.
Attachment #432221 - Flags: review?(Mozilla)
Comment on attachment 432221 [details] [diff] [review]
Fix - v1

patch looks good.

Just remove additional newline here:
>@@ -453,16 +464,18 @@ calCalendarManager.prototype = {
>                 selectPrefs.reset();
>             }
> 
>             let sortOrderAr = [];
>             for each (let s in sortOrder) {
>                 sortOrderAr.push(s);
>             }
>             cal.setPref("calendar.list.sortOrder", sortOrderAr.join(" "));
>+            flushPrefs();
>+
> 
>         } finally {

with that style-nit fixed
r=markus
Attachment #432221 - Flags: review?(Mozilla) → review+
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/c92a7236e227>

-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0b2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: