Commit c47ba0bf authored by Sanjiban Bairagya's avatar Sanjiban Bairagya Committed by Sanjiban Bairagya

Save route to disk on closing app, load it on reboot

parent 8717fb12
......@@ -34,6 +34,7 @@
#include <GeoDataCoordinates.h>
#include <GeoDataTypes.h>
#include <ReverseGeocodingRunnerManager.h>
#include <routing/RoutingManager.h>
namespace Marble
{
......@@ -869,6 +870,7 @@ namespace Marble
setZoom(zoom);
}
settings.endGroup();
d->m_model.routingManager()->readSettings();
}
void MarbleQuickItem::writeSettings()
......@@ -879,6 +881,7 @@ namespace Marble
settings.setValue("centerLat", QVariant(d->m_map.centerLatitude()));
settings.setValue("zoom", QVariant(zoom()));
settings.endGroup();
d->m_model.routingManager()->writeSettings();
}
QObject *MarbleQuickItem::getEventFilter() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment