[gnome-maps/wip/osm-edit: 41/47] osmEdit: Make the edit grid insensitive while downloading OSM data.



commit 830882dfa27417c569ade4ec2e4c0016835871d3
Author: Marcus Lundblad <ml update uu se>
Date:   Thu Mar 12 22:24:57 2015 +0100

    osmEdit: Make the edit grid insensitive while downloading OSM data.

 src/mapBubble.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/mapBubble.js b/src/mapBubble.js
index 7b808b6..42f1b86 100644
--- a/src/mapBubble.js
+++ b/src/mapBubble.js
@@ -196,6 +196,7 @@ const MapBubble = new Lang.Class({
     _onEditClicked: function() {
        print ('about to edit place: type: ' + this._place.osm_type + ' id: ' +
               this._place.osm_id);
+       this._editGrid.sensitive = false;
        this._viewOrEditStack.visible_child_name = 'edit';
        Application.osmEditManager.fetchObject(this._place,
                                               this._onObjectFetched.bind(this),
@@ -203,9 +204,10 @@ const MapBubble = new Lang.Class({
     },
 
     _onObjectFetched: function(success, status, data) {
-       if (success)
+       if (success) {
+           this._editGrid.sensitive = true;
            this._loadOSMData(data);
-       else
+       } else
            this._showError(status);
     },
 


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