Main window: fix label creation

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