Filemanager fixes for guimediawindow too

This is followup implements the same fixes for guimediawindow as already done in the filemanager class. @jmarshallnz: Please review.