From e4dffc60aa10c974a68c6496e5ceb118f87bbdc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Mon, 20 May 2024 15:34:32 +0200 Subject: [PATCH] fix(TestModel): proper row count check --- ui/StatusQ/tests/src/TestHelpers/testmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();