We need to be able to read the config even if the GPU options are not in it.
[dcpomatic.git] / src / wx / gpu_config_panel.cc
index 5d8365eb9bf7defd6b5cb1d4f4839c4c16bdfd0a..98e2faa98de337dbf7fa67f40f11301fb5eca472 100644 (file)
@@ -198,9 +198,9 @@ GPUPage::config_changed()
        }
        _gpu_list_control->update();
        _gpu_list_control->set_selection(config->selected_gpu());
-       checked_set(_server, config->gpu_license_server());
+       checked_set(_server, std_to_wx(config->gpu_license_server().get_value_or("")));
        checked_set(_port, config->gpu_license_port());
-       checked_set(_license, config->gpu_license());
+       checked_set(_license, config->gpu_license().get_value_or(""));
 }