Skip to content

Commit b839675

Browse files
committed
fixes window selection from collection
could be the wrapper needs to expose an Item method?
1 parent 0eafa7f commit b839675

File tree

1 file changed

+1
-1
lines changed
  • Rubberduck.VBEEditor/SafeComWrappers/VBA

1 file changed

+1
-1
lines changed

Rubberduck.VBEEditor/SafeComWrappers/VBA/VBE.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public IWindow ActiveMDIChild()
299299
{
300300
try
301301
{
302-
return Windows[mdiChildCaption];
302+
return Windows.FirstOrDefault(win => win.Caption == mdiChildCaption.ToString());
303303
}
304304
catch
305305
{

0 commit comments

Comments
 (0)