2
0
mirror of https://github.com/status-im/status-desktop.git synced 2025-01-11 23:05:17 +00:00

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

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