From cd71ce2dd43e4cca3b3da3f599616e7b1b6b8deb Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 17 Jun 2005 08:17:07 +0000 Subject: fixxxxx --- (limited to 'libkcal/todo.cpp') diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index d062492..62b74f1 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -95,9 +95,15 @@ void Todo::setRunning( bool run ) saveRunningInfoToFile(); } } - +void Todo::saveRunningInfo( QString comment, QDateTime start, QDateTime end ) +{ + mRunStart = start; + mRunEnd = end; + saveRunningInfoToFile( comment ); +} void Todo::saveRunningInfoToFile() { + mRunEnd = QDateTime::currentDateTime(); saveRunningInfoToFile( QString::null ); } void Todo::saveRunningInfoToFile( QString comment ) @@ -120,7 +126,7 @@ void Todo::saveRunningInfoToFile( QString comment ) to->setFloats( false ); to->setDtStart( mRunStart ); to->setHasStartDate( true ); - to->setDtDue( QDateTime::currentDateTime() ); + to->setDtDue( mRunEnd ); to->setHasDueDate( true ); to->setUid( file ); if ( !comment.isEmpty() ) { -- cgit v0.9.0.2