Fixed bug where CheckOrphanedTracks() would remove valid voice tracks when a log name template contains a '-'

This commit is contained in:
Patrick Linstruth 2018-01-16 14:26:44 -08:00
parent 3b1d79484d
commit 451e2b2003

View File

@ -283,7 +283,7 @@ void MainObject::CheckOrphanedTracks()
while(q->next()) {
logname=q->value(2).toString()+"_LOG";
logname.replace(" ","_");
sql=QString().sprintf("select ID from %s where CART_NUMBER=%u",
sql=QString().sprintf("select ID from `%s` where CART_NUMBER=%u",
(const char *)logname,q->value(0).toUInt());
q1=new QSqlQuery(sql);
if(!q1->first()) {