(gui) Fixes #74 Also fix another bug.

Previously, it was possible to break checks performed at connection
creation. For example, it was possible to reconnect 2 incompatible
ports or to connect 2 network ports together.