Commit 96f23974 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

fixed bug in Qt4 versions: the track times were not assigned to the correct...

fixed bug in Qt4 versions: the track times were not assigned to the correct tracks when some track times were missing
parent 21f8bdbf
......@@ -775,9 +775,9 @@ void ImportSelector::showPreview() {
++it) {
QTableWidgetItem* twi;
int fileDuration = (*it).getFileDuration();
if (fileDuration != 0) {
vLabels.append(TaggedFile::formatTime(fileDuration));
}
vLabels.append(fileDuration != 0 ?
TaggedFile::formatTime(fileDuration) :
QString::number(row + 1));
str.clear();
int importDuration = (*it).getImportDuration();
if (importDuration != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment