Skip to content

Commit

Permalink
Fix to be compatible with older QT versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SneWs committed Jul 16, 2024
1 parent 7a1c39d commit e7246bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AccountsTabUiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ AccountsTabUiManager::AccountsTabUiManager(Ui::MainWindow* u, TailRunner* runner
}
);

connect(ui->chkRunAsExitNode, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState newState) {
ui->chkExitNodeAllowNetworkAccess->setEnabled(newState == Qt::CheckState::Checked);
connect(ui->chkRunAsExitNode, &QCheckBox::clicked, this, [this]() {
ui->chkExitNodeAllowNetworkAccess->setEnabled(ui->chkRunAsExitNode->isChecked());
});

connect(ui->lstAccounts, &QListWidget::itemClicked, this, [this](QListWidgetItem* item) {
Expand Down

0 comments on commit e7246bd

Please sign in to comment.