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;