Skip to content
Snippets Groups Projects
Commit 6025791f authored by hjk's avatar hjk
Browse files

debugger: don't display invalid line numbers in the stack view

parent 0593aa5b
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ QVariant StackHandler::data(const QModelIndex &index, int role) const
case 2: // File name
return frame.file.isEmpty() ? frame.from : QFileInfo(frame.file).fileName();
case 3: // Line number
return frame.line;
return frame.line >= 0 ? QVariant(frame.line) : QVariant();
case 4: // Address
if (frame.address)
return QString::fromAscii("0x%1").arg(frame.address, 0, 16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment