File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Rubberduck.Core/Navigation/CodeExplorer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,8 @@ public bool IsTestModule
168
168
$ "{ _name } { ( IsPredeclared ? " (Predeclared)" : string . Empty ) } ";
169
169
170
170
private bool IsPredeclared => Declaration != null &&
171
- Declaration . Attributes . HasPredeclaredIdAttribute ( out _ ) &&
172
- Declaration . IsUserDefined ;
171
+ DeclarationType == DeclarationType . ClassModule &&
172
+ Declaration . Attributes . HasPredeclaredIdAttribute ( out _ ) ;
173
173
174
174
public override QualifiedSelection ? QualifiedSelection => Declaration . QualifiedSelection ;
175
175
@@ -238,6 +238,7 @@ private void SetIcon()
238
238
if ( Icons . ContainsKey ( DeclarationType ) )
239
239
{
240
240
_icon = Icons [ DeclarationType ] ;
241
+ return ;
241
242
}
242
243
243
244
_icon = OopsIcon ;
You can’t perform that action at this time.
0 commit comments