diff --git a/ui/edit/dialog_edit_profile.cpp b/ui/edit/dialog_edit_profile.cpp index fe70a3e21..2764ee47a 100644 --- a/ui/edit/dialog_edit_profile.cpp +++ b/ui/edit/dialog_edit_profile.cpp @@ -46,13 +46,20 @@ DialogEditProfile::DialogEditProfile(const QString &_type, int profileOrGroupId, ui->path_l->setVisible(true); ui->host->setVisible(false); ui->host_l->setVisible(false); - } else if (txt == "ws" || txt == "http" || txt == "httpupgrade") { + } else if (txt == "ws" || txt == "http") { ui->header_type->setVisible(false); ui->header_type_l->setVisible(false); ui->path->setVisible(true); ui->path_l->setVisible(true); ui->host->setVisible(true); ui->host_l->setVisible(true); + } else if (txt == "httpupgrade") { + ui->header_type->setVisible(false); + ui->header_type_l->setVisible(false); + ui->path->setVisible(true); + ui->path_l->setVisible(false); + ui->host->setVisible(true); + ui->host_l->setVisible(false); } else { ui->header_type->setVisible(false); ui->header_type_l->setVisible(false);