aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppStream.cpp')
-rw-r--r--source/QXmppStream.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp
index c0bc03d3..f0b9f91c 100644
--- a/source/QXmppStream.cpp
+++ b/source/QXmppStream.cpp
@@ -140,9 +140,11 @@ void QXmppStream::connect()
void QXmppStream::socketSslErrors(const QList<QSslError> & error)
{
log(QString("SSL errors"));
- m_socket.ignoreSslErrors();
for(int i = 0; i< error.count(); ++i)
log(error.at(i).errorString());
+
+ if (getConfiguration().getIgnoreSslErrors())
+ m_socket.ignoreSslErrors();
}
void QXmppStream::socketHostFound()