fix multiple connections for the same action

this causes the connected slot to be called multiple times