SrmDevice: fix rideList population

oops, overwrote the startTime, accidently. Wondering how this passed any
testing as this resulted in all blocks being skipped.

Added explicit initialization of wanted field, aswell.
This commit is contained in:
Rainer Clasen
2012-02-11 20:57:05 +01:00
parent d3184df0c6
commit dda86936a1

View File

@@ -282,8 +282,9 @@ SrmDevice::preview( QString &err )
if( block.start )
ride->startTime.setTime_t( 0.1 * block.start );
if( block.end )
ride->startTime.setTime_t( 0.1 * block.end );
ride->endTime.setTime_t( 0.1 * block.end );
ride->work = block.total;
ride->wanted = false;
rideList.append( ride );
if( block.athlete )