DocumentViewController already had a function that enabled/disabled
the View actions (e.g. Zoom to Fit) based on whether View
was visible among other things. However this was never called when
switching from View to Browse.
This patch therefore connects MainWindow::viewModeChanged to this
function.
This ensures shortcuts like F for Zoom to Fit are ignored
while in Browse so they are passed to the underlying item model.