From 579eba2b1b809e52fd076f9b097fedca9ba68e9f Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 15 Feb 2023 18:31:28 +0100 Subject: [PATCH] Fixed off by one error --- devicesmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicesmodel.cpp b/devicesmodel.cpp index 94229a6..25a3eb3 100644 --- a/devicesmodel.cpp +++ b/devicesmodel.cpp @@ -304,7 +304,7 @@ bool DevicesModel::removeRows(int row, int count, const QModelIndex &parent) return false; } - if (row + count >= lights.size()) + if (row + count > lights.size()) { qWarning() << "hilfe" << __LINE__; return false;