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

Fixed possible crash when asking for the icon of a top-level symbol (e.g. the global namespace).

parent c5df0a1d
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ QIcon Icons::iconForSymbol(const Symbol *symbol) const ...@@ -84,7 +84,7 @@ QIcon Icons::iconForSymbol(const Symbol *symbol) const
} else if (symbol->isPrivate()) { } else if (symbol->isPrivate()) {
return _funcPrivateIcon; return _funcPrivateIcon;
} }
} else if (symbol->scope()->isEnumScope()) { } else if (symbol->scope() && symbol->scope()->isEnumScope()) {
return _enumeratorIcon; return _enumeratorIcon;
} else if (symbol->isDeclaration() || symbol->isArgument()) { } else if (symbol->isDeclaration() || symbol->isArgument()) {
if (symbol->isPublic()) { if (symbol->isPublic()) {
......
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