summarylogtreecommitdiffstats
path: root/0009-fix-multiple-choice.patch
blob: 91f9ad77459b3e2723031396b19eeccae822e12f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
index 7ca307ff9d..11fdea36b1 100644
--- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp
+++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
@@ -564,7 +564,8 @@ void PhysicalPrinterDialog::build_printhost_settings(ConfigOptionsGroup* m_optgr
     // Always fill in the "printhost_port" combo box from the config and select it.
     {
         Choice* choice = dynamic_cast<Choice*>(m_optgroup->get_field("printhost_port"));
-        choice->set_values({ m_config->opt_string("printhost_port") });
+        const std::vector<std::string> choice_values = { m_config->opt_string("printhost_port") };
+        choice->set_values(choice_values);
         choice->set_selection();
     }