forked from qt-creator/qt-creator
Fixes: Possible crash in OverviewModel.
This commit is contained in:
@@ -171,7 +171,7 @@ QVariant OverviewModel::data(const QModelIndex &index, int role) const
|
|||||||
if (! symbol->isScopedSymbol() || symbol->isFunction()) {
|
if (! symbol->isScopedSymbol() || symbol->isFunction()) {
|
||||||
QString type = _overview.prettyType(symbol->type());
|
QString type = _overview.prettyType(symbol->type());
|
||||||
if (! type.isEmpty()) {
|
if (! type.isEmpty()) {
|
||||||
if (! symbol->type()->isFunctionType())
|
if (symbol->type() && ! symbol->type()->isFunctionType())
|
||||||
name += QLatin1String(": ");
|
name += QLatin1String(": ");
|
||||||
name += type;
|
name += type;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user