Commit da545cc2 authored by David Faure's avatar David Faure
Browse files

Fix assert due to off-by-one in beginRemoveRows call

Testcase: Debugger tab, Clear All Messages button
parent 8105b2e5
......@@ -85,7 +85,7 @@ bool DebugModel::removeRows(int row, int count, const QModelIndex& parent)
return false;
}
beginRemoveRows(parent, row, row + count);
beginRemoveRows(parent, row, row + count - 1);
mMessages.remove(row, count);
QVector<QString> toDelete;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment