jansorg / tom-ui

Qt5-based user interface for the tom time tracker
https://www.tomtime.dev
GNU General Public License v3.0
8 stars 2 forks source link

Crash when finishing the editing of an undefined end time #140

Open tanius opened 1 year ago

tanius commented 1 year ago

I think this is the first time that tom-ui crashed on me, which speaks for its quality :) The crash is reproducible as follows:

  1. Start a new timeframe in any project or sub-project.
  2. Double-click into the "End" field of the new timeframe. It will show an edit box with "01.01.00 00:00" in it.
  3. Click anywhere outside the edit box, as if to leave it. This leads to a crash.

In step 3, pressing Esc or Return does not lead to a crash and rather leads to the respective expected results.

(As a side note, it could be more practical to initialize the edit box with the current date and time rather than "01.01.00 00:00". The user can then adjust this to a date and time in the recent past with minimal effort, which is probably the most frequent use case when editing an end time of a currently active timeframe.)


Some technical information about the crash, sadly as a screenshot as I cannot figure out how to copy stuff from the apport crash-report window:

image