Fix displaying of link menu when `ENABLE_LINK=NO`.
We disable the items, but not the menu. So, there was an empty list on `Options` > `Link` > `Type`.
This commit is contained in:
parent
07107096b8
commit
531172c4be
|
@ -2930,6 +2930,12 @@ bool MainFrame::BindControls()
|
||||||
gdbmi->GetMenu()->Remove(gdbmi);
|
gdbmi->GetMenu()->Remove(gdbmi);
|
||||||
gdbmi = NULL;
|
gdbmi = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef NO_LINK
|
||||||
|
// remove this item from the menu completely
|
||||||
|
wxMenuItem* linkmi = XRCITEM("LinkMenu");
|
||||||
|
linkmi->GetMenu()->Remove(linkmi);
|
||||||
|
linkmi = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
// if a recent menu is present, save its location
|
// if a recent menu is present, save its location
|
||||||
wxMenuItem* recentmi = XRCITEM("RecentMenu");
|
wxMenuItem* recentmi = XRCITEM("RecentMenu");
|
||||||
|
|
|
@ -260,7 +260,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="wxMenu">
|
<object class="wxMenu">
|
||||||
<label>_Options</label>
|
<label>_Options</label>
|
||||||
<object class="wxMenu">
|
<object class="wxMenu" name="LinkMenu">
|
||||||
<label>_Link</label>
|
<label>_Link</label>
|
||||||
<object class="wxMenuItem" name="LanLink">
|
<object class="wxMenuItem" name="LanLink">
|
||||||
<label>Start _Network Link ...</label>
|
<label>Start _Network Link ...</label>
|
||||||
|
|
Loading…
Reference in New Issue