From e55d141896130c9b82bfae60e23078b8b765d85e Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Thu, 23 Jan 2014 20:32:25 +0100 Subject: [PATCH 1/1] Allow overriding of socket handling methods This is primarily needed for ClientAuthHandler, which does not want to throw error messages to the outside during protocol detection. --- src/common/authhandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/authhandler.h b/src/common/authhandler.h index 3cf50598..cfed51e4 100644 --- a/src/common/authhandler.h +++ b/src/common/authhandler.h @@ -62,8 +62,8 @@ protected: void setSocket(QTcpSocket *socket); protected slots: - void onSocketError(QAbstractSocket::SocketError error); - void onSocketDisconnected(); + virtual void onSocketError(QAbstractSocket::SocketError error); + virtual void onSocketDisconnected(); private: void invalidMessage(); -- 2.20.1