mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fixed insert rows count in appendClient function
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user