fix: LGTM warnings
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
e2ab2aea32
commit
0b81b283bf
2 changed files with 30 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue