From dda86936a1516b26faeb507379401a02e9a0b22c Mon Sep 17 00:00:00 2001 From: Rainer Clasen Date: Sat, 11 Feb 2012 20:57:05 +0100 Subject: [PATCH] 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. --- src/SrmDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SrmDevice.cpp b/src/SrmDevice.cpp index 0b5adcaf7..7036abaf4 100644 --- a/src/SrmDevice.cpp +++ b/src/SrmDevice.cpp @@ -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 )