fix index dialog regression

thanks to sk94 for noticing this when trying to
convert this to .ui

Change-Id: If7130d53acb7c194cf0a9a4301f3573789888b86