[gnome-maps] routeQuery: Avoid multiple notifies in reset



commit 0ccbecd4d5b53ed78cca8083523e6d274f411a1d
Author: Jonas Danielsson <jonas danielsson threetimestwo org>
Date:   Fri Oct 24 07:23:06 2014 -0400

    routeQuery: Avoid multiple notifies in reset
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737775

 src/routeQuery.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/routeQuery.js b/src/routeQuery.js
index 71c173a..554d68b 100644
--- a/src/routeQuery.js
+++ b/src/routeQuery.js
@@ -121,9 +121,11 @@ const RouteQuery = new Lang.Class({
 
     reset: function() {
         this.transportation = Transportation.CAR;
+        this.freeze_notify();
         this._points.forEach(function(point) {
             point.place = null;
         });
+        this.thaw_notify();
         this.emit('reset');
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]