Correctly disconnect signals

Authored by mutlaqja on May 29 2019, 5:54 PM.