diff --git a/ChangeLog b/ChangeLog index d7a6e58c..c3ef67cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22367,3 +22367,6 @@ 2021-09-01 Fred Gleason * Fixed a regression in 'RDGroupListModel' that caused SQL errors upon startup in rdairplay(1) and rdcartslots(1). +2021-09-01 Fred Gleason + * Fixed a bug in rdlibrary(1) that caused added carts to appear + that did not match the currently selected filter. diff --git a/lib/rdcartfilter.cpp b/lib/rdcartfilter.cpp index a4f1900d..7d88dfaa 100644 --- a/lib/rdcartfilter.cpp +++ b/lib/rdcartfilter.cpp @@ -201,7 +201,11 @@ QSizePolicy RDCartFilter::sizePolicy() const QString RDCartFilter::filterSql(const QStringList &and_fields) const { - QString sql=" where "; + QString sql=QString(" where "); + + for(int i=0;i