code: def reject(self):
          
          self.canvas.unsetMapTool(self.rectangle_map_tool)
          self.rectangle_map_tool.reset()
  
          super(OsmDownloaderDialog, self).reject()
docs: Redefinition of the method to remove the rectangle selection tool.
  
          It will call the super method.