[gui] temp fix to reset m_guiState with the right file item list

Okay here is a less intrusive fix for #5804.
@Montellese @topfs2 @MartijnKaijser ping