Commit 99ccc568 authored by David Faure's avatar David Faure Committed by Laurent Montel

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

Testcase: Debugger tab, Clear All Messages button
(cherry picked from commit da545cc2)
parent e87e6489
......@@ -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