Merge pull request #190 from deltecent/issue189-rddbcheck

Fixed bug where CheckOrphanedTracks() would remove valid voice tracks…
This commit is contained in:
Fred Gleason 2018-05-25 20:17:34 +00:00 committed by GitHub
commit b50069f846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()) {