fix custom outbound

This commit is contained in:
Nova 2025-01-16 03:54:22 +03:30
parent afdbc7b7d5
commit 3e97e094fb

View File

@ -165,7 +165,7 @@ DialogEditProfile::DialogEditProfile(const QString &_type, int profileOrGroupId,
LOAD_TYPE("chain")
// type changed
connect(ui->type, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, [=](int index) {
connect(ui->type, &QComboBox::currentIndexChanged, this, [=](int index) {
typeSelected(ui->type->itemData(index).toString());
});
@ -222,7 +222,7 @@ void DialogEditProfile::typeSelected(const QString &newType) {
auto _innerWidget = new EditSSH(this);
innerWidget = _innerWidget;
innerEditor = _innerWidget;
} else if (type == "internal" || type == "internal-full") {
} else if (type == "custom" || type == "internal" || type == "internal-full") {
auto _innerWidget = new EditCustom(this);
innerWidget = _innerWidget;
innerEditor = _innerWidget;