Fix playlist filter with Qt 6
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user