summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeCacheView.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-12-14 18:33:00 (GMT)
committerBrad King <brad.king@kitware.com>2022-12-16 14:09:07 (GMT)
commitcb00fe08926b404b523c80021f17195baf1fdabd (patch)
tree8bf36357823d0fc43999e98544f1e3c3d421f262 /Source/QtDialog/QCMakeCacheView.cxx
parentdcb1c9c080d9dc7231893baf8bd71713ed2fe021 (diff)
downloadCMake-cb00fe08926b404b523c80021f17195baf1fdabd.zip
CMake-cb00fe08926b404b523c80021f17195baf1fdabd.tar.gz
CMake-cb00fe08926b404b523c80021f17195baf1fdabd.tar.bz2
cmake-gui: do not set search filter if regex is invalid
Fixes: #24248
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index f79d6fc..6f19b67 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -167,13 +167,9 @@ bool QCMakeCacheView::showAdvanced() const
return this->AdvancedFilter->showAdvanced();
}
-void QCMakeCacheView::setSearchFilter(const QString& s)
+bool QCMakeCacheView::setSearchFilter(const QString& s)
{
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
- this->SearchFilter->setFilterRegularExpression(s);
-#else
- this->SearchFilter->setFilterFixedString(s);
-#endif
+ return QtCMake::setSearchFilter(this->SearchFilter, s);
}
QCMakeCacheModel::QCMakeCacheModel(QObject* p)