2021-09-01 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdlibrary(1) that caused added carts to appear
	that did not match the currently selected filter.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-09-01 13:28:09 -04:00
parent 0b58b4f5a9
commit 9cc917b10a
2 changed files with 8 additions and 1 deletions

View File

@ -22367,3 +22367,6 @@
2021-09-01 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDGroupListModel' that caused SQL errors
upon startup in rdairplay(1) and rdcartslots(1).
2021-09-01 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlibrary(1) that caused added carts to appear
that did not match the currently selected filter.

View File

@ -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<and_fields.size();i++) {
sql+="("+and_fields.at(i)+") && ";
}
//
// Cart Type Filter