SmartPlaylistSearchTerm: Move value assigment

Mistake done in commit 3f3ae7c38f
This commit is contained in:
Jonas Kvinge 2022-05-05 20:41:30 +02:00
parent edd088927d
commit 948be36d3c
1 changed files with 1 additions and 2 deletions

View File

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