diff --git a/src/controller.cpp b/src/controller.cpp index 3d1c3ffd4..dd38ede9b 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -116,7 +116,7 @@ Controller::Controller(QObject *parent) connect(&AccountRegistry::instance(), &AccountRegistry::accountCountChanged, this, [this]() { if (AccountRegistry::instance().size() > oldAccountCount) { auto connection = AccountRegistry::instance().accounts()[AccountRegistry::instance().size() - 1]; - connect(connection, &Connection::syncDone, this, [this]() { + connect(connection, &Connection::syncDone, this, [this, connection]() { handleNotifications(connection); }); }