aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppRemoteMethod.cpp
diff options
context:
space:
mode:
authorJBB <jbb.prv@gmx.de>2020-01-20 00:19:38 +0100
committerLNJ <lnj@kaidan.im>2020-01-20 00:19:38 +0100
commit8557bc3a605e5d2b1a7dae5999501b19c1c99b58 (patch)
treef17fefa61a26e01c99884c7d3e458b8ea70b181b /src/client/QXmppRemoteMethod.cpp
parentcccb7675e0eb9d411c736d1ff3f189fb75ef33dd (diff)
Port majority of old-style connects (#237)
This provides more type safety and is future-proof.
Diffstat (limited to 'src/client/QXmppRemoteMethod.cpp')
-rw-r--r--src/client/QXmppRemoteMethod.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/QXmppRemoteMethod.cpp b/src/client/QXmppRemoteMethod.cpp
index 2f300cc8..da3b97f6 100644
--- a/src/client/QXmppRemoteMethod.cpp
+++ b/src/client/QXmppRemoteMethod.cpp
@@ -43,8 +43,8 @@ QXmppRemoteMethodResult QXmppRemoteMethod::call( )
// FIXME : spinning an event loop is a VERY bad idea, it can cause
// us to lose incoming packets
QEventLoop loop(this);
- connect( this, SIGNAL(callDone()), &loop, SLOT(quit()));
- QTimer::singleShot(30000,&loop, SLOT(quit())); // Timeout in case the other end hangs...
+ connect( this, &QXmppRemoteMethod::callDone, &loop, &QEventLoop::quit);
+ QTimer::singleShot(30000,&loop, &QEventLoop::quit); // Timeout in case the other end hangs...
m_client->sendPacket( m_payload );