Skip to content

Commit c3b7fbd

Browse files
committed
Fixed cast exception in code explorer / "show designer"
1 parent 0f1435f commit c3b7fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RetailCoder.VBE/UI/CodeExplorer/CodeExplorerDockablePresenter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ private void ShowDesigner(object sender, EventArgs e)
118118
var node = Control.SolutionTree.SelectedNode;
119119
if (node != null && node.Tag != null)
120120
{
121-
var selection = (QualifiedSelection)node.Tag;
122-
var module = VBE.FindCodeModules(selection.QualifiedName).FirstOrDefault();
121+
var selection = (Declaration)node.Tag;
122+
var module = VBE.FindCodeModules(selection.QualifiedName.QualifiedModuleName).FirstOrDefault();
123123
if (module == null)
124124
{
125125
return;

0 commit comments

Comments
 (0)