Switch saving edits from Attribute Table dialog from connection to using public function