Merge pull request #492 from amnezia-vpn/bugfix/append-client
fixed insert rows count in appendClient function
This commit is contained in:
commit
42949e0dea
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue