From 160b471e4d254fd45dbbd161178de15a14163a0c Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 17 Jun 2005 09:29:18 +0000 Subject: fixxx --- (limited to 'libkcal') diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 62b74f1..9a8b6e4 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -97,6 +97,8 @@ void Todo::setRunning( bool run ) } void Todo::saveRunningInfo( QString comment, QDateTime start, QDateTime end ) { + if ( !mRunning) return; + mRunning = false; mRunStart = start; mRunEnd = end; saveRunningInfoToFile( comment ); diff --git a/libkcal/todo.h b/libkcal/todo.h index 11f848e..425dfad 100644 --- a/libkcal/todo.h +++ b/libkcal/todo.h @@ -42,7 +42,6 @@ namespace KCal { typedef ListBase List; QCString type() const { return "Todo"; } IncTypeID typeID() const { return todoID; } - void saveRunningInfo( QString comment, QDateTime start, QDateTime end ); /** Return an exact copy of this todo. */ Incidence *clone(); @@ -126,6 +125,7 @@ namespace KCal { void stopRunning(); int runTime(); QDateTime runStart () const { return mRunStart;} + void saveRunningInfo( QString comment, QDateTime start, QDateTime end ); public slots: void saveRunningInfoToFile( QString st ); void saveRunningInfoToFile( ); -- cgit v0.9.0.2