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:
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user