[17.1.564] After an entry in the connection manager is deleted a random entry is selected

Every now and then I tidy up the Connection Manager. It is a little odd that after deleting an entry, a random entry is selected and not the one before or after the deleted one.

The list is not grouped in my case, but sorted according to the columns "User" and "Database", if that matters.