Fixed qt/wx switch problem