From c663080fdd13fd2d1027d3066a53004ab5b741f2 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 25 Aug 2023 14:44:56 -0400 Subject: [PATCH] 2023-08-25 Fred Gleason * Fixed a bug in the 'RDSvc::remove()' method that failed to remove records from the 'USER_SERVICE_PERMS' table. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ lib/rdsvc.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1c0eeb1a..167863dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24377,3 +24377,6 @@ * Added profiling code (disabled by default) to the 'RDCae' class. 2023-08-25 Fred Gleason * Added a 'PadSegueOverlap=' directive to rd.conf(5). +2023-08-25 Fred Gleason + * Fixed a bug in the 'RDSvc::remove()' method that failed to remove + records from the 'USER_SERVICE_PERMS' table. diff --git a/lib/rdsvc.cpp b/lib/rdsvc.cpp index 33ba4f6d..08035175 100644 --- a/lib/rdsvc.cpp +++ b/lib/rdsvc.cpp @@ -1668,6 +1668,11 @@ void RDSvc::remove(const QString &name) q=new RDSqlQuery(sql); delete q; + sql=QString("delete from `USER_SERVICE_PERMS` where ")+ + "`SERVICE_NAME`='"+RDEscapeString(name)+"'"; + q=new RDSqlQuery(sql); + delete q; + sql=QString("update `RDAIRPLAY` set ")+ "`DEFAULT_SERVICE`='' where "+ "`DEFAULT_SERVICE`='"+RDEscapeString(name)+"'";