Closed
Bug 314345
Opened 20 years ago
Closed 20 years ago
Events and tasks still seen if all calendars is deselected
Categories
(Calendar :: Sunbird Only, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: robin.edrenius, Assigned: jminta)
Details
Attachments
(1 file, 1 obsolete file)
|
1.61 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
If you deselect all calendars you will still see the events in the event-list and the tasks in the tasks list. You will not see them in the calendar though.
If there are more than one calendar, the events and tasks of the calendar that is deselected last is still shown.
| Assignee | ||
Comment 1•20 years ago
|
||
If there are no calendars, cmpListener never gets a chance to call onOperationComplete, because it never executes a getItems call itself. Therefore, in this case, we just call onOperationComplete directly.
This is a fairly noticable regression from 0.2. Not sure if it's bad enough to warrant a last-minute checkin like this though.
Comment 2•20 years ago
|
||
Comment on attachment 201283 [details] [diff] [review]
handle no calendar case
> getItems: function (aItemFilter, aCount, aRangeStart, aRangeEnd, aListener) {
>+ // If there are no calendars, then we just call onOperationComplete
>+ if (this.mCalendars.length == 0) {
>+ aListener.onOperationComplete (this,
>+ 1,
>+ calIOperationListener.GET,
>+ null,
>+ null);
the '1' is pretty magic. Shouldn't it be an nsresult (NS_OK or something)?
Comment 3•20 years ago
|
||
Attachment #201283 -
Flags: first-review?(mvl) → first-review-
| Assignee | ||
Comment 4•20 years ago
|
||
Same as before, but without the magic 1.
Attachment #201283 -
Attachment is obsolete: true
Attachment #202092 -
Flags: first-review?(mvl)
Comment 5•20 years ago
|
||
Comment on attachment 202092 [details] [diff] [review]
handle no calendar case v2
r=mvl
Attachment #202092 -
Flags: first-review?(mvl) → first-review+
| Assignee | ||
Comment 6•20 years ago
|
||
patch checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•