From 1283faff9695e92c2df7cfe8adacb995026569fc Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 19 Apr 2024 12:59:34 +0200 Subject: [PATCH] Fix compatibility with Qt < 6.7 --- syncthingwidgets/settings/settingsdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncthingwidgets/settings/settingsdialog.cpp b/syncthingwidgets/settings/settingsdialog.cpp index 9d5d7e3..5d08556 100644 --- a/syncthingwidgets/settings/settingsdialog.cpp +++ b/syncthingwidgets/settings/settingsdialog.cpp @@ -1435,8 +1435,8 @@ QWidget *SystemdOptionPage::setupWidget() QObject::connect(ui()->stopPushButton, &QPushButton::clicked, m_service, &SyncthingService::stop); QObject::connect(ui()->enablePushButton, &QPushButton::clicked, m_service, &SyncthingService::enable); QObject::connect(ui()->disablePushButton, &QPushButton::clicked, m_service, &SyncthingService::disable); - QObject::connect(ui()->stopOnMeteredCheckBox, &QCheckBox::checkStateChanged, m_service, - [s = m_service](Qt::CheckState checkState) { s->setStoppingOnMeteredConnection(checkState == Qt::Checked); }); + QObject::connect(ui()->stopOnMeteredCheckBox, &QCheckBox::stateChanged, m_service, + [s = m_service](int checkState) { s->setStoppingOnMeteredConnection(checkState == Qt::Checked); }); m_unitChangedConn = QObject::connect(ui()->systemUnitCheckBox, &QCheckBox::clicked, m_service, bind(&SystemdOptionPage::handleSystemUnitChanged, this)); m_descChangedConn