diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp index 1adbd3e2a6..034fb653cd 100644 --- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp +++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp @@ -430,7 +430,7 @@ 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(m_optgroup->get_field("printhost_port")); - choice->set_values({ m_config->opt_string("printhost_port") }); + choice->set_values(std::vector{ m_config->opt_string("printhost_port") }); choice->set_selection(); } diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 1040d7c572..37dec2259f 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -12112,7 +12112,7 @@ void Plater::import_model_id(wxString download_info) /* load project */ // Orca: If download is a zip file, treat it as if file has been drag and dropped on the plater if (target_path.extension() == ".zip") - this->load_files(wxArrayString(1, target_path.string())); + this->load_files(wxArrayString(1, wxString::FromUTF8(target_path.string()))); else this->load_project(target_path.wstring()); /*BBS set project info after load project, project info is reset in load project */ diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp index 1a52f886ca..42fa277cc3 100644 --- a/src/slic3r/GUI/Preferences.cpp +++ b/src/slic3r/GUI/Preferences.cpp @@ -284,7 +284,7 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS if (combobox->GetSelection() == m_current_language_selected) return; - if (e.GetString().mb_str() != app_config->get(param)) { + if (e.GetString().ToStdString() != app_config->get(param)) { { //check if the project has changed if (wxGetApp().plater()->is_project_dirty()) {