[Qt] Fix the header menu popup when you have a header-state saved.