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()
|
void TestModel::invert()
|
||||||
{
|
{
|
||||||
if (m_data.size() < 2)
|
if (rowCount() < 2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
emit layoutAboutToBeChanged();
|
emit layoutAboutToBeChanged();
|
||||||
|
|
Loading…
Reference in New Issue