ui_qt: refresh memory areas when loading a document