It's clearer to just write `config.setting["va_name"] = self.ui.va_name.text() or self.options[0].default`. Same for `nat_name` below.