fix index dialog regression

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

Change-Id: If7130d53acb7c194cf0a9a4301f3573789888b86
(cherry picked from commit 3e66a5b5c6d1f602db2af5b5b44f5f41c83918f9)