1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-20 21:00:46 +01:00

PlaylistContainer: Fix filter text when switching playlist

Fixes #1005
This commit is contained in:
Jonas Kvinge 2022-07-26 07:34:58 +02:00
parent b02e0aae98
commit 33581fa61d

View File

@ -203,7 +203,7 @@ void PlaylistContainer::SetViewModel(Playlist *playlist, const int scroll_positi
// Update filter
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
ui_->filter->setText(playlist->proxy()->filterRegularExpression().pattern());
ui_->filter->setText(playlist->proxy()->filterRegularExpression().pattern().remove('\\'));
#else
ui_->filter->setText(playlist->proxy()->filterRegExp().pattern());
#endif