Merge pull request #492 from amnezia-vpn/bugfix/append-client

fixed insert rows count in appendClient function
This commit is contained in:
pokamest 2024-01-10 12:42:07 -05:00 committed by GitHub
commit 42949e0dea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,7 +231,7 @@ ErrorCode ClientManagementModel::appendClient(const QString &clientId, const QSt
}
}
beginInsertRows(QModelIndex(), rowCount(), 1);
beginInsertRows(QModelIndex(), rowCount(), rowCount() + 1);
QJsonObject client;
client[configKey::clientId] = clientId;