Fixed a regression in rdlibrary(1) where macro cart entries turn RED after viewing.

This commit is contained in:
Patrick Linstruth
2019-07-20 21:17:58 -07:00
parent ae23c18c62
commit 567751ee11
2 changed files with 7 additions and 2 deletions

View File

@@ -1399,7 +1399,7 @@ void MainWidget::RefreshList()
l->setTextColor(Length,QColor(Qt::black),QFont::Normal);
}
}
if((RDCart::Type)q->value(15).toUInt()!=RDCart::Macro) {
if((RDCart::Type)q->value(15).toUInt()==RDCart::Audio) {
RefreshCuts(l,q->value(0).toUInt());
}
else {
@@ -1579,7 +1579,9 @@ void MainWidget::RefreshLine(RDListViewItem *item)
}
}
RefreshCuts(item,item->text(Cart).toUInt());
if((RDCart::Type)q->value(14).toUInt()==RDCart::Audio) {
RefreshCuts(item,item->text(Cart).toUInt());
}
}
delete q;
}