gajim ignores defaults and only tries srv lookup results
Bug description
I have a host: mydomain.dom, A of mydomain.dom points to my jabber serving host, and the jabber server listens on default ports (i have a default setup and so do not need an SRV record). Gajim fails to connect (with no specific error: check your connection and try again). It seems that for hosts with srv records it has no issue.
If I tick the "Use custom hostname/port" box in the account settings, and leave the defaults in (hostname and 5222 port), gajim connects fine!
Steps to reproduce
Try to connect to a host without an srv record for xmpp, and without a custom connection hostname set in account settings.
Software versions
This is gentoo unstable with gajim mercurial latest tip installed changeset: 11623:78e8a0fdbd5f
OS version: Gentoo linux ~x86 unstable
Python 2.6.4
gcc (Gentoo 4.4.2 p1.0) 4.4.2
GTK version: gtk+-2.18.3
PyGTK version: pygtk-2.16.0