Main window: make sure the signal 'index-loading-end' is not emitted twice (bis)

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