Fix build on qt5.3

This commit is contained in:
Patrick von Reth 2015-09-04 16:38:49 +02:00
parent 9575e47046
commit 42871d35c4
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ void PushoverFrontend::connectToService()
}); });
connect(m_socket, &QWebSocket::disconnected, [this]() { connect(m_socket, &QWebSocket::disconnected, [this]() {
snoreDebug(SNORE_WARNING) << "disconnected"; snoreDebug(SNORE_WARNING) << "disconnected";
QTimer::singleShot(500, this, &PushoverFrontend::connectToService); //TODO: use new style connect once we depend on qt 5.4
QTimer::singleShot(500, this, SLOT(PushoverFrontend::connectToService()));
}); });
connect(m_socket, static_cast<void (QWebSocket::*)(QAbstractSocket::SocketError)>(&QWebSocket::error), [&](QAbstractSocket::SocketError error) { connect(m_socket, static_cast<void (QWebSocket::*)(QAbstractSocket::SocketError)>(&QWebSocket::error), [&](QAbstractSocket::SocketError error) {
snoreDebug(SNORE_WARNING) << error << m_socket->errorString(); snoreDebug(SNORE_WARNING) << error << m_socket->errorString();