Fix build on qt5.3
This commit is contained in:
parent
9575e47046
commit
42871d35c4
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue