google-code-export / freemedforms

Automatically exported from code.google.com/p/freemedforms
Other
0 stars 1 forks source link

Agenda: when returning from newEventAtAvailabity dialog, time duration is scrambled #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open an agenda
2. on duration, select e.g. 30 minutes
3. pick a date, e.g. 28.6.2012
4. in the field below there are the right times shown: 7:00, 7:30, 8:00, 8:30 
etc. pick one you remember, e.g. 8:00
5. the dialog opens, close it (with Esc)
6. now the field changes and shows other time durations like 6:00, 8:35, etc 
which is not a duration of 30min but 145min

If you take 5 minutes as duration, afterwords it will be 30.
Don't know where to look here.

Original issue reported on code.google.com by christian.a.reiter@gmail.com on 25 Jun 2012 at 12:10

GoogleCodeExporter commented 9 years ago
IMHO the error is in usercalendarviewer, line 293:
        dates = base()->nextAvailableTime(QDateTime(d->ui->startDate->date(), QTime(0,0)), (index+1)*5, *cal, S_NUMBEROFAVAILABILITIESTOSHOW);

Here the new dates are calculated by (index+1)*5 - this is the time that 
produces the error.
I don' know what this means so I can't fix it in short time - Eric, could you 
give me a hint here what the code does, or maybe you get a fix quicker?

Original comment by christian.a.reiter@gmail.com on 25 Jun 2012 at 12:18

GoogleCodeExporter commented 9 years ago
No problem, I'm working on this issue.
I'll commit today or tomorrow.
Thanks for your report

Original comment by eric.mae...@gmail.com on 25 Jun 2012 at 12:24

GoogleCodeExporter commented 9 years ago
thx ;-)

Original comment by christian.a.reiter@gmail.com on 25 Jun 2012 at 12:25