Bug 349824

Summary: Kronometer should be paused if the system is going to sleep
Product: [Applications] kronometer Reporter: Elvis Angelaccio <elvis.angelaccio>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED FIXED    
Severity: normal CC: simonandric5
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.0

Description Elvis Angelaccio 2015-07-02 11:55:37 UTC
A running stopwatch should be paused if the system is going to suspension or hibernation.

Reproducible: Always

Steps to Reproduce:
1. Open Kronometer
2. Start the stopwatch
3. Suspend the system
4. Resume the system

Actual Results:  
The stopwatch is running.

Expected Results:  
The stopwatch should be in paused state.
Comment 1 Elvis Angelaccio 2015-07-03 22:03:29 UTC
Git commit c375a36f60459bbeea36ba1722936a957573b17f by Elvis Angelaccio.
Committed on 03/07/2015 at 21:58.
Pushed by elvisangelaccio into branch 'frameworks'.

Implement suspension awareness

Kronometer is now notified when the system is going to sleep, either by
suspension or hibernation. All the windows with a running stopwatch are then
paused. This feature works only on systemd/logind systems, at the moment.
FIXED-IN: 2.0.0

M  +18   -0    src/mainwindow.cpp
M  +6    -0    src/mainwindow.h

http://commits.kde.org/kronometer/c375a36f60459bbeea36ba1722936a957573b17f