[gnome-maps] openTripPlanner: Don't reset query points on failure
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-maps] openTripPlanner: Don't reset query points on failure
- Date: Wed,  1 Apr 2020 18:18:00 +0000 (UTC)
commit 357807b3e296b9630e7169128ab3db6a89300fcb
Author: Marcus Lundblad <ml update uu se>
Date:   Wed Apr 1 20:15:06 2020 +0200
    openTripPlanner: Don't reset query points on failure
    
    Allows the user to re-try the same query with a
    turn-by-turn mode.
 src/transitplugins/openTripPlanner.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/transitplugins/openTripPlanner.js b/src/transitplugins/openTripPlanner.js
index eeb5aa56..b9926022 100644
--- a/src/transitplugins/openTripPlanner.js
+++ b/src/transitplugins/openTripPlanner.js
@@ -572,8 +572,7 @@ var OpenTripPlanner = class OpenTripPlanner {
             this._extendPrevious = false;
             this.plan.noMoreResults();
         } else {
-            this._reset();
-            this.plan.noRouteFound();
+            this.plan.noRouteFound();re
         }
     }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]