diff options
Diffstat (limited to 'Source/Core/DolphinQt/NKitWarningDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/NKitWarningDialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/NKitWarningDialog.cpp b/Source/Core/DolphinQt/NKitWarningDialog.cpp index 5bea5e69a4..0b16e4f0aa 100644 --- a/Source/Core/DolphinQt/NKitWarningDialog.cpp +++ b/Source/Core/DolphinQt/NKitWarningDialog.cpp @@ -77,8 +77,13 @@ NKitWarningDialog::NKitWarningDialog(QWidget* parent) : QDialog(parent) connect(cancel, &QPushButton::clicked, this, &QDialog::reject); ok->setEnabled(false); +#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) + connect(checkbox_accept, &QCheckBox::checkStateChanged, + [ok](Qt::CheckState state) { ok->setEnabled(state == Qt::Checked); }); +#else connect(checkbox_accept, &QCheckBox::stateChanged, [ok](int state) { ok->setEnabled(state == Qt::Checked); }); +#endif connect(this, &QDialog::accepted, [checkbox_skip] { Config::SetBase(Config::MAIN_SKIP_NKIT_WARNING, checkbox_skip->isChecked()); |
