frames with debug info but without source cannot be navigated to

... - in the source view, that is. so grey them out in the stack view.

Reviewed-By: hjk
This commit is contained in:
Oswald Buddenhagen
2009-10-30 15:07:17 +01:00
parent 9d20a2abb4
commit 6d6ed26eae
2 changed files with 2 additions and 3 deletions

View File

@@ -203,7 +203,7 @@ Qt::ItemFlags StackHandler::flags(const QModelIndex &index) const
if (index.row() == m_stackFrames.size())
return QAbstractTableModel::flags(index);
const StackFrame &frame = m_stackFrames.at(index.row());
const bool isValid = (!frame.file.isEmpty() && !frame.function.isEmpty())
const bool isValid = (frame.isUsable() && !frame.function.isEmpty())
|| theDebuggerBoolSetting(OperateByInstruction);
return isValid ? QAbstractTableModel::flags(index) : Qt::ItemFlags(0);
}