Skip to content
Snippets Groups Projects
Commit a2fd10fe authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixes: Possible crash in OverviewModel.

parent d01795d9
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ QVariant OverviewModel::data(const QModelIndex &index, int role) const ...@@ -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;
} }
......
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