Main window: fix warning message formating

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