2017-11-07 Fred Gleason <fredg@paravelsystems.com>

* Added the ability to delete multiple logs simultaneously in
	rdlogedit(1).
This commit is contained in:
Fred Gleason
2017-11-07 09:45:28 -05:00
parent fab9e57733
commit d9c03cb5dc
11 changed files with 416 additions and 87 deletions

View File

@@ -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)",