diff --git a/ui/StatusQ/tests/src/TestHelpers/testmodel.cpp b/ui/StatusQ/tests/src/TestHelpers/testmodel.cpp index 92cba4a987..080abaf8a9 100644 --- a/ui/StatusQ/tests/src/TestHelpers/testmodel.cpp +++ b/ui/StatusQ/tests/src/TestHelpers/testmodel.cpp @@ -85,7 +85,7 @@ void TestModel::remove(int index) void TestModel::invert() { - if (m_data.size() < 2) + if (rowCount() < 2) return; emit layoutAboutToBeChanged();