(gui) Correctly delete useless connections after refinement update