mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
fix custom outbound
This commit is contained in:
parent
afdbc7b7d5
commit
3e97e094fb
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user