Fix potential crash in BreakpointModel::removeRows

Authored by kfunk on Feb 13 2014, 8:59 PM.

Description

Fix potential crash in BreakpointModel::removeRows

This crashed for me when row == 0 && count == 0.
Now validates input.

Fixes the crash on the CI:
QFATAL : GDBDebugger::GdbTest::testStdOut() ASSERT: "last >= first" in
file kernel/qabstractitemmodel.cpp, line 2467

Details

Committed
kfunkFeb 13 2014, 9:41 PM
Parents
R32:a6f3bf06c14c: GrepView: Initialize correctly
Branches
Unknown
Tags
Unknown