Andrew,
This patch has been tested on my laptop and I did not encounter a problem.
Is there still a problem with this "Not quite correct patch"? so that it should not be checked into GIT?

Well, I'm fairly sure

void MWindow::hide_vwindow() kinda wrong (because copypasta!)

but it seems to work for single viewer window I wanted to hide via  this menu.