diff --git a/src/panels/findreplace.cpp b/src/panels/findreplace.cpp index d093dbf..cbccb39 100644 --- a/src/panels/findreplace.cpp +++ b/src/panels/findreplace.cpp @@ -75,9 +75,9 @@ FindReplaceBar::FindReplaceBar(QWidget *parent) connect(m_replaceBtn, &QPushButton::clicked, this, &FindReplaceBar::onReplaceClicked); connect(m_replaceAllBtn, &QPushButton::clicked, this, &FindReplaceBar::onReplaceAllClicked); connect(m_toggleReplaceBtn, &QPushButton::clicked, this, &FindReplaceBar::onToggleReplace); - connect(m_caseSensitive, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState) { updateMatches(); }); - connect(m_wholeWord, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState) { updateMatches(); }); - connect(m_regex, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState) { updateMatches(); }); + connect(m_caseSensitive, &QCheckBox::stateChanged, this, [this](int) { updateMatches(); }); + connect(m_wholeWord, &QCheckBox::stateChanged, this, [this](int) { updateMatches(); }); + connect(m_regex, &QCheckBox::stateChanged, this, [this](int) { updateMatches(); }); }