Clicking "delete" on a row results in the whole connection editor disappearing, leaving the user with an empty window:
This patch makes remove_row correctly find the row to remove.