~mihirsoni/ubuntu-calendar-app/1327262

« back to all changes in this revision

Viewing changes to NewEvent.qml

  • Committer: Mihir Soni
  • Date: 2014-06-06 15:43:36 UTC
  • Revision ID: mihirsoni.123@gmail.com-20140606154336-6ih8d1lrxvw735h8
all day edits are enabled

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    //Save the new or Existing event
125
125
    function saveToQtPim() {
126
126
        internal.clearFocus()
127
 
        if ( startDate >= endDate ) {
 
127
        if ( !allDayEventCheckbox.checked && startDate >= endDate ) {
128
128
            PopupUtils.open(errorDlgComponent,root,{"text":i18n.tr("End time can't be before start time")});
129
129
        } else {
130
130
            event.startDateTime = startDate;