| Summary: | Auto tracking system still tracks the task after it was marked as complete | ||
|---|---|---|---|
| Product: | [Applications] ktimetracker | Reporter: | Nicu Hodos <nicu> |
| Component: | general | Assignee: | Thorsten Staerk <dev> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nicu Hodos
2007-04-02 12:54:46 UTC
I can reproduce this and it is a bug. I bet this is the solution:
Index: taskview.cpp
===================================================================
--- taskview.cpp (revision 651040)
+++ taskview.cpp (working copy)
@@ -383,6 +383,7 @@
void TaskView::startTimerFor(Task* task, QDateTime startTime )
{
kdDebug(5970) << "Entering TaskView::startTimerFor" << endl;
+ if (task->isComplete()) return;
if (save()==QString())
{
if (task != 0 && activeTasks.findRef(task) == -1)
Index: task.cpp
===================================================================
--- task.cpp (revision 651040)
+++ task.cpp (working copy)
@@ -99,7 +99,6 @@
{
kdDebug(5970) << "Entering Task::setRunning" << endl;
if ( on ) {
- if (isComplete()) return; // don't start if its marked complete
if (!_timer->isActive()) {
_timer->start(1000);
storage->startTimer(this);
wrong. I bet this is the problem:
connect( _desktopTracker, SIGNAL( reachedtActiveDesktop( Task* ) ),
this, SLOT( startTimerFor(Task*) ));
|