fix: LGTM warnings

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-08-13 14:35:44 -03:00
parent e2ab2aea32
commit 0b81b283bf
2 changed files with 30 additions and 2 deletions

View File

@ -380,8 +380,8 @@ bool ResourceFolderModel::validateIndex(const QModelIndex& index) const
if (!index.isValid())
return false;
size_t row = index.row();
if (row < 0 || row >= size())
int row = index.row();
if (row < 0 || row >= m_resources.size())
return false;
return true;