From e0890f05bdb92d3c3fb4183f7559915f809c70cd Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 13 Dec 2022 13:35:42 -0500 Subject: [PATCH] 2022-12-13 Fred Gleason * Fixed a regression in 'RDLibraryModel' that could throw a SQL error when processing notifications for added carts. Signed-off-by: Fred Gleason --- ChangeLog | 5 ++++- lib/rdlibrarymodel.cpp | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0a611984..4414000a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23784,4 +23784,7 @@ 2022-12-08 Fred Gleason * Implemented column sorting for item lists in rdcastmanager(1). 2022-12-08 Fred Gleason - * Incremented the package version to 4.0.0rc0int7. + * Incremented the package version to 4.0.0rc0int7 +2022-12-13 Fred Gleason + * Fixed a regression in 'RDLibraryModel' that could throw a SQL + error when processing notifications for added carts. diff --git a/lib/rdlibrarymodel.cpp b/lib/rdlibrarymodel.cpp index 00232430..5a9aabdc 100644 --- a/lib/rdlibrarymodel.cpp +++ b/lib/rdlibrarymodel.cpp @@ -573,15 +573,15 @@ void RDLibraryModel::setFilterSql(const QString &sql,int cart_limit) void RDLibraryModel::processNotification(RDNotification *notify) { + printf("RDLibraryModel::processNotification()\n"); + QString sql; RDSqlQuery *q=NULL; if(notify->type()==RDNotification::CartType) { switch(notify->action()) { case RDNotification::AddAction: - sql=QString("select ")+ - "`NUMBER` "+ // 00 - "from `CART` "+ + sql=sqlFields()+ d_filter_sql+ QString::asprintf(" && `CART`.`NUMBER`=%u",notify->id().toUInt()); q=new RDSqlQuery(sql);