[Marble-commits] KDE/kdeedu/marble/src/lib/routing

Dennis Nienhüser earthwings at gentoo.org
Sun Sep 5 16:24:05 CEST 2010


SVN commit 1171868 by nienhueser:

Invalidate any previous position when the user edits an input field.
CCMAIL: ewoerner at kde.org

 M  +2 -3      RoutingInputWidget.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingInputWidget.cpp #1171867:1171868
@@ -140,7 +140,7 @@
              this, SLOT(retrieveReverseGeocodingResult( GeoDataCoordinates, GeoDataPlacemark ) ) );
     connect( d->m_lineEdit, SIGNAL( returnPressed() ),
              this, SLOT( findPlacemarks() ) );
-    connect( d->m_lineEdit, SIGNAL( textChanged( QString ) ),
+    connect( d->m_lineEdit, SIGNAL( textEdited( QString ) ),
              this, SLOT( setInvalid() ) );
     connect( &d->m_progressTimer, SIGNAL( timeout() ),
              this, SLOT( updateProgress() ) );
@@ -255,10 +255,9 @@
 
 void RoutingInputWidget::setInvalid()
 {
-    if ( !hasTargetPosition() ) {
+    d->m_route->setPosition( d->m_index, GeoDataCoordinates() );
         emit targetValidityChanged( false );
     }
-}
 
 void RoutingInputWidget::abortMapInputRequest()
 {


More information about the Marble-commits mailing list