~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to NewEvent.qml

  • Committer: Tarmac
  • Author(s): Kunal Parmar
  • Date: 2015-05-18 11:03:07 UTC
  • mfrom: (615.2.16 ubuntu-calendar-app)
  • Revision ID: tarmac-20150518110307-l9cyomv9qlt31jds
Resolves Bug #1378380
Add event on tap. Fixes: https://bugs.launchpad.net/bugs/1378380, https://bugs.launchpad.net/bugs/1451557.

Approved by Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
                event.setDetail(audibleReminder);
218
218
            }
219
219
            event.collectionId = calendarsOption.model[calendarsOption.selectedIndex].collectionId;
 
220
 
 
221
            var comment = event.detail(Detail.Comment);
 
222
            if(comment && comment.comment === "X-CAL-DEFAULT-EVENT") {
 
223
                event.removeDetail(comment);
 
224
            }
 
225
 
220
226
            model.saveItem(event);
221
227
            pageStack.pop();
222
228
            root.eventAdded(event);