Make sure shortcuts work all the time by adding every QAction to main window.