Main window: Before showing a new doc, cancel all the page loading

Signed-off-by: Jerome Flesch <jflesch@gmail.com>