Fix lock-up when triggering Quick Preferences menu, spotted by beastie1