Ensure stateChanged signal connect matches disconnect
A change to the connect signal introduced a lambda function, rather than calling stateChanged directly, so that the disconnect no longer matched the connect. This potentially prevented the disconnect from being applied correctly. This change matches the connect and disconnect up again.
Showing with 3 additions and 5 deletions