From 0ccf6362a3c15dd827620c968c14b17a34afcf67 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Fri, 22 Nov 2013 00:41:56 +0100 Subject: [PATCH 1/1] Add disconnection reasons This will display the reason for disconnection from the core in case of an incompatible protocol version or missing SSL in the status bar. --- src/client/clientauthhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/clientauthhandler.cpp b/src/client/clientauthhandler.cpp index a390ab6a..43174535 100644 --- a/src/client/clientauthhandler.cpp +++ b/src/client/clientauthhandler.cpp @@ -166,14 +166,14 @@ void ClientAuthHandler::onProtocolVersionMismatch(int actual, int expected) { emit errorPopup(tr("The Quassel Core you are trying to connect to is too old!
" "We need at least protocol v%1, but the core speaks v%2 only.").arg(expected, actual)); - requestDisconnect(); + requestDisconnect(tr("Incompatible protocol version, connection to core refused")); } void ClientAuthHandler::handle(const ClientDenied &msg) { emit errorPopup(msg.errorString); - requestDisconnect(); + requestDisconnect(tr("The core refused connection from this client")); } -- 2.20.1