mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +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;
|
QJsonObject client;
|
||||||
client[configKey::clientId] = clientId;
|
client[configKey::clientId] = clientId;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user