I've created a map tool to add some functionality to adding point features in QGIS 2.0. I'd like to unset this map tool if editing has manually been terminated by user. I've attempted as shown below, but my map tool remains active even after editing is terminated.
if not self.myLayer.isEditable():
self.canvas.unsetMapTool(self.clickTool)