Bug 281380

Summary: Marble looses all tracking data when closed
Product: [Applications] marble Reporter: Bernhard Beschow <shentey>
Component: generalAssignee: marble-bugs
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: 1.3 (KDE 4.8)   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Bernhard Beschow 2011-09-05 12:04:48 UTC
Version:           unspecified (using Devel) 
OS:                Linux

When closing Marble, it looses data that is being recorded.

Reproducible: Always

Steps to Reproduce:
Close Marble gracefully or terminate it while recording a track.

Actual Results:  
Marble looses all tracking data.

Expected Results:  
Marble should never loose tracking data. It should keep the tracking data even if it was closed forcefully (caused by internal or external errros).
Comment 1 Bernhard Beschow 2011-09-05 12:06:36 UTC
Mappero behaves the way requested above.
Comment 2 Thibaut Gridel 2012-07-28 15:44:19 UTC
Git commit 35aa9a6cb9097380d282a48ee4679cb65bdd1735 by Thibaut Gridel.
Committed on 28/07/2012 at 17:43.
Pushed by tgridel into branch 'master'.

PositionTracking: store current track to file, and reload on next launch

User will not lose his data as it is saved on closing the application
and reopened at startup.
Applications which want to benefit this need to call:
marbleModel()->positionTracking()->readSettings() and writeSettings()

M  +3    -1    src/QtMainWindow.cpp
M  +0    -3    src/lib/CurrentLocationWidget.ui
M  +89   -3    src/lib/PositionTracking.cpp
M  +4    -0    src/lib/PositionTracking.h

http://commits.kde.org/marble/35aa9a6cb9097380d282a48ee4679cb65bdd1735