New answers tagged toolbar
I had the same problem with one particular shapefile (maybe it was protected by its vendor). My solution was to select all features and save the selection as a vector file (i.e. new shapefile) - in the "Layer" section of QGIS 2.2.0 top menu. The new shapefile layer is editable.
Based on how your code looks, your toolbar variable needs to be global. The error makes it look like your toolbar variable is not global or something else is overwriting it. This is one of the reasons you shouldn't use an element's onClick attribute to set up event listeners. Take a look at either the Add graphics to a map or the Drawing tools sample for ...
Top 50 recent answers are included