aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp
index d72e10ed..b6239762 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -223,7 +223,7 @@ void Connection::checkAndConnect(const QString& userId,
void Connection::logout()
{
auto job = callApi<LogoutJob>();
- connect( job, &LogoutJob::success, [=] {
+ connect( job, &LogoutJob::success, this, [=] {
stopSync();
emit loggedOut();
});