[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Sun Oct 17 10:51:52 CEST 2010
SVN commit 1186686 by nienhueser:
Make sure a routing profile is set at startup if there is one. Fixes routing not working until the first Get Directions button click.
M +3 -0 RoutingManager.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingManager.cpp #1186685:1186686
@@ -300,7 +300,10 @@
void RoutingManager::readSettings()
{
d->loadRoute( d->stateFile() );
+ if ( d->m_routeRequest && d->m_profilesModel->rowCount() ) {
+ d->m_routeRequest->setRoutingProfile( d->m_profilesModel->profiles().at( 0 ) );
}
+}
void RoutingManager::setGuidanceModeEnabled( bool enabled )
{
More information about the Marble-commits
mailing list