Bug 54452 - Reset Session times resets both Session and Total times
Summary: Reset Session times resets both Session and Total times
Status: RESOLVED FIXED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Mark Bucciarelli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-11 08:49 UTC by lenz
Modified: 2025-01-18 10:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lenz 2003-02-11 08:49:13 UTC
Version:           1.2 (using KDE 3.1.0)
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.19-4GB

In KDE 3.0.4, one could reset the session time counters for
all tasks by pressing CTRL+R (Reset session time). This was
handy when beginning a new working day.

However, after updating to KDE 3.1, karm does not only reset
the session times but the total times as well! Even though being
finally able to reset all counters with one keystroke instead of
having to edit each task individually is nice, it should not be happening with the same hotkey that was used before.

If possible, please revert this back to the old behaviour, but provide a separate hotkey/menu entry that enables one to reset both time counters at the same time.
Comment 1 Mark Bucciarelli 2003-09-25 20:10:57 UTC
In KArm CVS (and the upcoming 3.2 Beta), there are now two options on the file 
menu--"Start new Session" and "Reset all Timers".  Neither of these are bound to a 
short cut key in the default install. 
Comment 2 lenz 2003-10-21 18:24:16 UTC
Thanks, but how is this related to the bug I reported initially?

This still happens with Karm on KDE 3.1.4 - pressing CTRL+R to reset the
session times does also reset the Total times.
Comment 3 lenz 2003-10-21 18:25:08 UTC
I reopen this bug, as I don't consider it fixed yet...
Comment 4 Mark Bucciarelli 2003-10-21 18:44:47 UTC
Start New Session resets the session times for all tasks.

Reset All Timers resets all times for all tasks.

I won't bind either of these to a shortcut key in the default install, as they are destructive.  But you can by editing the shortcut keys.

If this doesn't meet what you need, please give me more information.
Comment 5 lenz 2003-10-21 21:02:59 UTC
Thanks for the quick reply. Let me try to rephrase my problem, which is not directly related to shortcut keys, but to the way Session times are being reset.

I currently use Karm 1.2 on KDE 3.1.4. By default, the hotkey CTRL+R is bound to
File->Reset Session times, which supposedly resets the Session time counters for each task. However, choosing "Reset Session Times" from the menu or pressing
CTRL+R resets both the Session Times and also seems to substract the time spent
for the last session from the Total Times of each task.

Let me try to give you an example. Say I have two tasks, Hacking and Mail.
I have already been working on both tasks the previous day, but I restarted
karm to start a new seession. So the karm display would look like this:

 Task name  | Session Time | Total time
------------+--------------+-------------
 Hacking    |     0:00     |    4:30
 Mail       |     0:00     |    2:45
------------+--------------+-------------
                       This session: 0:00

Now let's think I have been working on both tasks for a while, so both session
and total times have increased during this session:


 Task name  | Session Time | Total time
------------+--------------+-------------
 Hacking    |     1:30     |    6:00
 Mail       |     2:15     |    5:00
------------+--------------+-------------
                       This session: 3:45

Now I would like to reset the session times to zero again (to start a new 
work day, for example). In previous versions, pressing CTRL+R would result
in the following:

 Task name  | Session Time | Total time
------------+--------------+-------------
 Hacking    |     0:00     |    6:00
 Mail       |     0:00     |    5:00
------------+--------------+-------------
                       This session: 0:00

As you can see, the session times were reset, but the total times
remained constant (as one would expect).

HOWEVER, what happens to me is this:

 Task name  | Session Time | Total time
------------+--------------+-------------
 Hacking    |     0:00     |    4:30
 Mail       |     0:00     |    2:45
------------+--------------+-------------
                       This session: 0:00

So the time worked on the current session was substracted from the total time
again, which does not seem to be the correct behaviour, if one wanted to reset
the session times only.

IIRC, this did not happen in earlier versions which made it much more convenient to use. You could simply let karm stay up and running for several days and only press CTRL+R at the beginning of each day to reset the session times, while the total times were preserved. Since this bug has shown up, I always end up having to save the times and quit karm, then restart it to be able to start a new session.

However, it would of course be convenient to have another shortcut key to reset both the Session and Total times, e.g. at the beginning of a new working week.
Comment 6 Tristan Miller 2003-10-26 13:13:14 UTC
Mark, your enhancement does what the OP wants, provided that the bug is fixed.  That is, as long as your "New Session" feature resets session times without also subtracting them from the corresponding total times, this fixes the bug.

If the KArm CVS will work with KDE 3.1.4 and is stable enough for everyday use, then I'll probably start using that, as the current bug renders KArm practically useless for multisession activity.
Comment 7 Mark Bucciarelli 2003-10-28 17:11:30 UTC
Yes, the start new session clears session times and leaves the total alone.  So, I'll mark this as closed.

I have a usage question for you two about session times:  does session==today for you?

Re: running KArm CVS under 3.1.4, this is how I use it.  IIRC, you have to build the 3.2 version of qt-copy, kdelibs, kdebase, kdepim/libical, kdepim/libkcal, and kdepim/libkdepim before kdepim/karm will build.

If you use Debian, you can apt-get CVS debs.  Google on Orth kde cvs and you should find it.

Comment 8 Tristan Miller 2003-10-28 17:27:21 UTC
Mark, thanks for the tips on building KArm CVS.  I'll give it a try.

As to your question regarding whether session==today, I'd say that in most cases it does, though I can imagine scenarios where I might want session==week or even session<day.  Considering renaming the label?  I'd say keep it as-is.  Anyway, it would be dangerous to change the semantics because we zombies who work at nights might not appreciate having our session times reset to zero when the clock strikes twelve.