fix a re entrancy bug in panel affecting menu
Merge pull request #255 from wolfmanjm/upstreamedge

fix a re entrancy bug in panel affecting menu