Skip to content

Commit

Permalink
put the Project Explorer context menu back into the right parent cont…
Browse files Browse the repository at this point in the history
…rols collection
  • Loading branch information
retailcoder committed Oct 5, 2016
1 parent d127857 commit 012e8a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RetailCoder.VBE/Root/RubberduckModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private void ConfigureProjectExplorerContextMenu()
{
const int projectPropertiesMenuId = 2578;
var commandBars = _vbe.CommandBars;
var menuBar = commandBars[MenuBar];
var menuBar = commandBars[ProjectWindow];
var controls = menuBar.Controls;
var beforeControl = controls.FirstOrDefault(control => control.Id == projectPropertiesMenuId);
var beforeIndex = beforeControl == null ? 1 : beforeControl.Index;
Expand Down
4 changes: 2 additions & 2 deletions Rubberduck.VBEEditor/DisposableWrappers/VBA/VBE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public override void Release()
VBProjects.Release();
CodePanes.Release();
CommandBars.Release();
Windows.Release();
AddIns.Release();
//Windows.Release();
//AddIns.Release();
Marshal.ReleaseComObject(ComObject);
}
}
Expand Down

0 comments on commit 012e8a0

Please sign in to comment.