Ignore request to jump to a negative frame index.
commit7f0e7f7d71e5e75d9544e0171b6f7555734e989b
authorJohannes Sixt <j6t@kdbg.org>
Sun, 22 Feb 2015 14:03:07 +0000 (22 15:03 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 22 Feb 2015 14:03:07 +0000 (22 15:03 +0100)
treedd1d4d80b8cadf2fd50cd71ff3598160cc97a31e
parent2fef4b7afc70c44683bb90a27d7264ef91c47af4
Ignore request to jump to a negative frame index.

When the stack window is cleared, a currentRowChanged() signal is emitted,
which is connected to gotoFrame(). But then the item index is -1, and the
submitted command returns output showing no associated file information.
As a consequence, the frame pointer is cleared. The exact reason for this
change of behavior is not known. Most likely earlier versions of Qt did
not emit the signal when the list was cleared.
kdbg/debugger.cpp