Fix playlist filter with Qt 6

This commit is contained in:
Jonas Kvinge
2021-01-20 20:18:29 +01:00
parent 71728bb3fe
commit 010a0cc2a7

View File

@@ -80,7 +80,7 @@ void PlaylistFilter::sort(int column, Qt::SortOrder order) {
bool PlaylistFilter::filterAcceptsRow(int row, const QModelIndex &parent) const { bool PlaylistFilter::filterAcceptsRow(int row, const QModelIndex &parent) const {
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QString filter = filterRegularExpression().pattern(); QString filter = filterRegularExpression().pattern().replace("\\ ", " ");
#else #else
QString filter = filterRegExp().pattern(); QString filter = filterRegExp().pattern();
#endif #endif