Bug 343126

Summary: Changes lost if Ask On Exit option is enabled
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: 1.6.0

Description Elvis Angelaccio 2015-01-21 17:14:26 UTC
If the Ask On Exit option is enabled and if the times of an opened file have changed, then after closing Kronometer the changes are lost.

Reproducible: Always

Steps to Reproduce:
1. Open a Kronometer file 
2. Start the stopwatch and save some new laps
3. Close Kronometer window

Actual Results:  
No KMessageBox appears, changes are lost.

Expected Results:  
Kronometer should ask the user if he wants to save the changes on the opened file.
Comment 1 Elvis Angelaccio 2015-01-22 15:13:19 UTC
Git commit 9f8bf9230ccf6548540d5d72d06b1ae7241bb3a5 by Elvis Angelaccio.
Committed on 22/01/2015 at 15:02.
Pushed by elvisangelaccio into branch 'master'.

Remove 'Ask on exit' option

Instead of a custom *Ask on exit* option, use the standard *Don't ask again*
checkbox provided by KMessageBox, when no file is opened. If a file is opened,
just ask the user whether he wants to save the changes.
FIXED-IN: 1.6.0

M  +0    -3    src/kronometer.kcfg
M  +11   -9    src/mainwindow.cpp
M  +8    -30   src/widgets/savesettings.ui

http://commits.kde.org/kronometer/9f8bf9230ccf6548540d5d72d06b1ae7241bb3a5