mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-25 11:00:07 +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")
|
LOAD_TYPE("chain")
|
||||||
|
|
||||||
// type changed
|
// 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());
|
typeSelected(ui->type->itemData(index).toString());
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -222,7 +222,7 @@ void DialogEditProfile::typeSelected(const QString &newType) {
|
|||||||
auto _innerWidget = new EditSSH(this);
|
auto _innerWidget = new EditSSH(this);
|
||||||
innerWidget = _innerWidget;
|
innerWidget = _innerWidget;
|
||||||
innerEditor = _innerWidget;
|
innerEditor = _innerWidget;
|
||||||
} else if (type == "internal" || type == "internal-full") {
|
} else if (type == "custom" || type == "internal" || type == "internal-full") {
|
||||||
auto _innerWidget = new EditCustom(this);
|
auto _innerWidget = new EditCustom(this);
|
||||||
innerWidget = _innerWidget;
|
innerWidget = _innerWidget;
|
||||||
innerEditor = _innerWidget;
|
innerEditor = _innerWidget;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user