Summary: | Timer reset does not take effect if the computer is suspended and resumed. | ||
---|---|---|---|
Product: | [Applications] kronometer | Reporter: | Kishore Gopalakrishnan <kishore96> |
Component: | general | Assignee: | Elvis Angelaccio <elvis.angelaccio> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.2.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
Latest Commit: | https://invent.kde.org/utilities/kronometer/commit/1bc1a8ade91986df6c10df89f5b598c866dea4c1 | Version Fixed In: | 2.3.0 |
Description
Kishore Gopalakrishnan
2021-07-18 10:28:36 UTC
Git commit 1bc1a8ade91986df6c10df89f5b598c866dea4c1 by Elvis Angelaccio. Committed on 22/09/2022 at 21:20. Pushed by elvisangelaccio into branch 'master'. Fix stopwatch restart after system sleep m_accumulator was reset to 0 only inside the start() method if the stopwatch was inactive. But in MainWindow::slotPrepareForSleep() we do an unconditional pause() on the stopwatch, so this breaks the stopwatch restart after the system resumes. The proper fix is to reset m_accumulator inside the reset() method. FIXED-IN: 2.3.0 M +1 -0 src/core/stopwatch.cpp https://invent.kde.org/utilities/kronometer/commit/1bc1a8ade91986df6c10df89f5b598c866dea4c1 |