[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Tue Nov 30 22:28:40 CET 2010
SVN commit 1202434 by nienhueser:
Use a shorter maximum wait time for alternative routes (0.5 sec instead of 2).
M +1 -1 AlternativeRoutesModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/AlternativeRoutesModel.cpp #1202433:1202434
@@ -374,7 +374,7 @@
// First
int responseTime = d->m_responseTime.elapsed();
d->m_restrainedRoutes.push_back( document );
- int timeout = qMin<int>( 2000, qMax<int>( 50, responseTime * 2 ) );
+ int timeout = qMin<int>( 500, qMax<int>( 50, responseTime * 2 ) );
QTimer::singleShot( timeout, this, SLOT( addRestrainedRoutes() ) );
return;
} else if ( d->m_routes.isEmpty() && !d->m_restrainedRoutes.isEmpty() ) {
More information about the Marble-commits
mailing list