~pkunal-parmar/ubuntu-calendar-app/Minor-Performance

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2014-02-26 13:42:20 UTC
  • mto: This revision was merged to the branch mainline in revision 207.
  • Revision ID: renato.filho@canonical.com-20140226134220-l78yr8k35xe8ngw3
Disabled calendar model autoUpdate until a date interval is set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
                if(globalModel) {
93
93
                    globalModel.startPeriod =  new Date(currentDay.getFullYear(),0,1,0,0,0,0);
94
94
                    globalModel.endPeriod = new Date(currentDay.getFullYear(),11,31,0,0,0,0);
 
95
                    // only enable auto update after set the date interval
 
96
                    globalModel.autoUpdate = true
 
97
                    globalModel.update()
95
98
                }
96
99
            }
97
100