mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
ProtocolsModel bug fixes
This commit is contained in:
@@ -24,7 +24,7 @@ QHash<int, QByteArray> ProtocolsModel::roleNames() const {
|
||||
QVariant ProtocolsModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (!index.isValid() || index.row() < 0
|
||||
|| index.row() >= ContainerProps::allContainers().size()) {
|
||||
|| index.row() >= ProtocolProps::allProtocols().size()) {
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user