forked from qt-creator/qt-creator
		
	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:
		@@ -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);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user