Fixed off by one error

This commit is contained in:
2023-02-15 18:31:28 +01:00
parent 575e325e2f
commit 579eba2b1b

View File

@ -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;