Settings dialog: Fix Gtk-CRITICAL assertions when opening the dialog

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