chatclient-qml: Show errors in a dialog


If the socket is closed the error was so far written to a non-existing
element. Show a modal dialog then, instead. Also, do not make the
login window visible until we have established a connection.

Change-Id: I5045f8583a396f22b751e65b8bb73c609b51c9be
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
commit47028349eabff3fadedcfe1918faa372537c018f
parentf3456482e44a1ef4663870b427492f4513a231e7
authorKai Koehne <kai.koehne@qt.io>
committerKai Koehne <kai.koehne@qt.io>
commit timeTue, 12 Sep 2017 09:22:30 +0000