aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp
index 1257f251..f498f613 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -150,7 +150,7 @@ void Connection::connectToServer(const QString& user, const QString& password,
const QString& deviceId)
{
checkAndConnect(user,
- [&] {
+ [=] {
doConnectToServer(user, password, initialDeviceName, deviceId);
});
}
@@ -177,7 +177,7 @@ void Connection::connectWithToken(const QString& userId,
const QString& deviceId)
{
checkAndConnect(userId,
- [&] { d->connectWithToken(userId, accessToken, deviceId); });
+ [=] { d->connectWithToken(userId, accessToken, deviceId); });
}
void Connection::Private::connectWithToken(const QString& user,