fixed coredump in login dialog if the user selects no connection and presses Ok