main window: index update: make sure the previous hack never remain stuck

Signed-off-by: Jerome Flesch <jflesch@gmail.com>