[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Sat Nov 13 23:26:30 CET 2010
SVN commit 1196684 by nienhueser:
Update the routing profile in the route request after configuring it. Fixes configuration changes not having any effect on subsequent routing requests.
M +3 -1 RoutingWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingWidget.cpp #1196683:1196684
@@ -477,9 +477,11 @@
void RoutingWidget::configureProfile()
{
- if ( d->m_ui.routingProfileComboBox->currentIndex() != -1) {
+ int index = d->m_ui.routingProfileComboBox->currentIndex();
+ if ( index != -1 ) {
RoutingProfileSettingsDialog dialog( d->m_widget->model()->pluginManager(), d->m_routingManager->profilesModel(), d->m_widget );
dialog.editProfile( d->m_ui.routingProfileComboBox->currentIndex() );
+ d->m_routeRequest->setRoutingProfile( d->m_routingManager->profilesModel()->profiles().at( index ) );
}
}
More information about the Marble-commits
mailing list