From 3e97e094fb12de8ef4baaf9f7e8488c65cca5d57 Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 16 Jan 2025 03:54:22 +0330 Subject: [PATCH] fix custom outbound --- src/ui/profile/dialog_edit_profile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/profile/dialog_edit_profile.cpp b/src/ui/profile/dialog_edit_profile.cpp index 0209984..cbaae24 100644 --- a/src/ui/profile/dialog_edit_profile.cpp +++ b/src/ui/profile/dialog_edit_profile.cpp @@ -165,7 +165,7 @@ DialogEditProfile::DialogEditProfile(const QString &_type, int profileOrGroupId, LOAD_TYPE("chain") // type changed - connect(ui->type, static_cast(&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;