settings: fix proxy switch crash

This commit is contained in:
tobtoht
2024-05-03 01:26:03 +02:00
parent b030c7d032
commit 9483325a68
4 changed files with 11 additions and 11 deletions
+1
View File
@@ -378,6 +378,7 @@ void Settings::onProxySettingsChanged() {
ui->closeButton->addButton(QDialogButtonBox::Apply);
connect(ui->closeButton->button(QDialogButtonBox::Apply), &QAbstractButton::clicked, [this](){
ui->proxyWidget->setProxySettings();
m_nodes->updateModels();
emit proxySettingsChanged();
ui->closeButton->removeButton(ui->closeButton->button(QDialogButtonBox::Apply));
});