Add missing capture

This commit is contained in:
Tobias Fella
2023-05-18 00:03:07 +02:00
parent d74253d149
commit ae6056615d

View File

@@ -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);
});
}