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)+"'";