Skip to content

Commit e44f877

Browse files
committed
adds DisplayName to extra QualifiedModuleName constructor
was out of Sync with Next, so had to add these fields to the newly discovered ctor.
1 parent ec79aed commit e44f877

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rubberduck.VBEEditor/QualifiedModuleName.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ public QualifiedModuleName(VBComponent component, string oldComponentName)
120120

121121
_component = component;
122122
_componentName = oldComponentName;
123+
_componentDisplayName = GetDisplayName(component);
123124
_project = component == null ? null : component.Collection.Parent;
124125
_projectName = _project == null ? string.Empty : _project.Name;
126+
_projectDisplayName = GetDisplayName(_project);
125127
_projectPath = string.Empty;
126128
_projectId = GetProjectId(_project);
127129

@@ -221,7 +223,6 @@ public string ProjectTitle
221223
}
222224
}
223225

224-
225226
private readonly string _projectName;
226227

227228
public string ProjectName

0 commit comments

Comments
 (0)