1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-06 20:33:30 +01:00

SmartPlaylistSearchTerm: Move value assigment

Mistake done in commit 3f3ae7c38fa073078feb9f7ee3c104bfd8b5ad14
This commit is contained in:
Jonas Kvinge 2022-05-05 20:41:30 +02:00
parent edd088927d
commit 948be36d3c

View File

@ -38,10 +38,9 @@ QString SmartPlaylistSearchTerm::ToSql() const {
QString col = FieldColumnName(field_);
QString date = DateName(date_, true);
QString value;
QString value = value_.toString();
value.replace('\'', "''");
value = value_.toString();
if (field_ == Field_Filetype) {
Song::FileType filetype = Song::FiletypeByExtension(value);
if (filetype == Song::FileType_Unknown) {