author | zautrix <zautrix> | 2005-06-17 09:29:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-17 09:29:18 (UTC) |
commit | 160b471e4d254fd45dbbd161178de15a14163a0c (patch) (unidiff) | |
tree | 149a5bf6ef1eb0399c46c928a53d31fa298ac383 /libkcal/todo.cpp | |
parent | cd71ce2dd43e4cca3b3da3f599616e7b1b6b8deb (diff) | |
download | kdepimpi-160b471e4d254fd45dbbd161178de15a14163a0c.zip kdepimpi-160b471e4d254fd45dbbd161178de15a14163a0c.tar.gz kdepimpi-160b471e4d254fd45dbbd161178de15a14163a0c.tar.bz2 |
fixxx
-rw-r--r-- | libkcal/todo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 62b74f1..9a8b6e4 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp | |||
@@ -92,16 +92,18 @@ void Todo::setRunning( bool run ) | |||
92 | mRunStart = QDateTime::currentDateTime(); | 92 | mRunStart = QDateTime::currentDateTime(); |
93 | } else { | 93 | } else { |
94 | mRunSaveTimer->stop(); | 94 | mRunSaveTimer->stop(); |
95 | saveRunningInfoToFile(); | 95 | saveRunningInfoToFile(); |
96 | } | 96 | } |
97 | } | 97 | } |
98 | void Todo::saveRunningInfo( QString comment, QDateTime start, QDateTime end ) | 98 | void Todo::saveRunningInfo( QString comment, QDateTime start, QDateTime end ) |
99 | { | 99 | { |
100 | if ( !mRunning) return; | ||
101 | mRunning = false; | ||
100 | mRunStart = start; | 102 | mRunStart = start; |
101 | mRunEnd = end; | 103 | mRunEnd = end; |
102 | saveRunningInfoToFile( comment ); | 104 | saveRunningInfoToFile( comment ); |
103 | } | 105 | } |
104 | void Todo::saveRunningInfoToFile() | 106 | void Todo::saveRunningInfoToFile() |
105 | { | 107 | { |
106 | mRunEnd = QDateTime::currentDateTime(); | 108 | mRunEnd = QDateTime::currentDateTime(); |
107 | saveRunningInfoToFile( QString::null ); | 109 | saveRunningInfoToFile( QString::null ); |