fix(TestModel): proper row count check

This commit is contained in:
Michał Cieślak 2024-05-20 15:34:32 +02:00 committed by Michał
parent 5c5debd0c0
commit e4dffc60aa
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ void TestModel::remove(int index)
void TestModel::invert()
{
if (m_data.size() < 2)
if (rowCount() < 2)
return;
emit layoutAboutToBeChanged();