mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2017-11-07 Fred Gleason <fredg@paravelsystems.com>
* Added the ability to delete multiple logs simultaneously in rdlogedit(1).
This commit is contained in:
@@ -370,13 +370,11 @@ bool RDLog::remove(RDStation *station,RDUser *user,RDConfig *config) const
|
||||
{
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
QString name=log_name;
|
||||
|
||||
name.replace(" ","_");
|
||||
if(removeTracks(station,user,config)<0) {
|
||||
return false;
|
||||
}
|
||||
sql=QString().sprintf("drop table `%s_LOG`",(const char *)name);
|
||||
sql=QString("drop table `")+RDLog::tableName(log_name)+"`";
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
sql=QString().sprintf("delete from LOGS where (NAME=\"%s\" && TYPE=0)",
|
||||
|
Reference in New Issue
Block a user