Operator error! I wrote this code many months ago, and forgot that I reimplemented showEvent for that QFrame, and was doing something that changed the comboBox's index.