Fixed bug with menuupdate on Linux

Fixed bug, what leaving showed level toolboxes after closing of last
subwindow. Toolboxes must be hidden if opened nothing.