The "hide-and-show" dance makes the notebook select the next tab. https://bugzilla.gnome.org/show_bug.cgi?id=733092