Main window: Fix label creation

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