Main window: optim search results display: detach the model before updating it and reattach it next

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