Fix timer connect

This commit is contained in:
Hannah von Reth 2015-12-12 12:02:04 +01:00
parent ffa85c30ef
commit 25cf8f7770
1 changed files with 1 additions and 1 deletions

View File

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