fixed typo
This commit is contained in:
parent
24ca68b15b
commit
782e1a8557
|
@ -87,7 +87,7 @@ void DbQueryWidget::insertSearchTermsFromTagEdit(TagEdit *tagEdit)
|
||||||
try {
|
try {
|
||||||
TagValue trackValue = tagEdit->value(KnownField::TrackPosition);
|
TagValue trackValue = tagEdit->value(KnownField::TrackPosition);
|
||||||
if(!trackValue.isEmpty()) {
|
if(!trackValue.isEmpty()) {
|
||||||
m_ui->trackSpinBox->setValue(trackValue.toPositionIntSet().position());
|
m_ui->trackSpinBox->setValue(trackValue.toPositionInSet().position());
|
||||||
trackValueOk = true;
|
trackValueOk = true;
|
||||||
}
|
}
|
||||||
} catch(const ConversionException &) {
|
} catch(const ConversionException &) {
|
||||||
|
|
|
@ -371,7 +371,7 @@ void MainWindow::selectNextFile(QItemSelectionModel *selectionModel, const QMode
|
||||||
*conn = connect(m_fileFilterModel, &QAbstractItemModel::rowsInserted, [this, selectionModel, currentIndex, conn] (const QModelIndex &parent, int, int) {
|
*conn = connect(m_fileFilterModel, &QAbstractItemModel::rowsInserted, [this, selectionModel, currentIndex, conn] (const QModelIndex &parent, int, int) {
|
||||||
disconnect(*conn);
|
disconnect(*conn);
|
||||||
if(parent == currentIndex) {
|
if(parent == currentIndex) {
|
||||||
QModelIndex next = m_fileFilterModel->index(0, 0, parent);
|
const QModelIndex next = m_fileFilterModel->index(0, 0, parent);
|
||||||
if(next.isValid()) {
|
if(next.isValid()) {
|
||||||
if(m_ui->filesTreeView->model()->hasChildren(next)) {
|
if(m_ui->filesTreeView->model()->hasChildren(next)) {
|
||||||
// next item is a directory -> keep on searching
|
// next item is a directory -> keep on searching
|
||||||
|
|
|
@ -727,7 +727,7 @@ void TagEditorWidget::showFile(char result)
|
||||||
m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Critical);
|
m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Critical);
|
||||||
m_ui->parsingNotificationWidget->setText(tr("File couldn't be parsed correctly."));
|
m_ui->parsingNotificationWidget->setText(tr("File couldn't be parsed correctly."));
|
||||||
}
|
}
|
||||||
bool multipleSegmentsNotTested = m_fileInfo.containerFormat() == ContainerFormat::Matroska && m_fileInfo.container()->segmentCount();
|
bool multipleSegmentsNotTested = m_fileInfo.containerFormat() == ContainerFormat::Matroska && m_fileInfo.container()->segmentCount() > 1;
|
||||||
if(worstNotificationType >= Media::NotificationType::Critical) {
|
if(worstNotificationType >= Media::NotificationType::Critical) {
|
||||||
m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Critical);
|
m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Critical);
|
||||||
m_ui->parsingNotificationWidget->appendLine(tr("There are critical parsing notifications."));
|
m_ui->parsingNotificationWidget->appendLine(tr("There are critical parsing notifications."));
|
||||||
|
|
|
@ -731,7 +731,7 @@ void TagFieldEdit::updateValue(const TagValue &value, PreviousValueHandling prev
|
||||||
if(m_spinBoxes.second) {
|
if(m_spinBoxes.second) {
|
||||||
PositionInSet pos;
|
PositionInSet pos;
|
||||||
try {
|
try {
|
||||||
pos = value.toPositionIntSet();
|
pos = value.toPositionInSet();
|
||||||
} catch(const ConversionException &) {
|
} catch(const ConversionException &) {
|
||||||
conversionError = true;
|
conversionError = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,13 +63,13 @@ TAGEDITOR_JS_VALUE &operator <<(TAGEDITOR_JS_VALUE &tagObject, const Tag &tag)
|
||||||
} catch(ConversionException &) {}
|
} catch(ConversionException &) {}
|
||||||
PositionInSet pos;
|
PositionInSet pos;
|
||||||
try {
|
try {
|
||||||
pos = tag.value(KnownField::TrackPosition).toPositionIntSet();
|
pos = tag.value(KnownField::TrackPosition).toPositionInSet();
|
||||||
} catch(ConversionException &) {}
|
} catch(ConversionException &) {}
|
||||||
tagObject.setProperty("trackPos", pos.position() TAGEDITOR_JS_READONLY);
|
tagObject.setProperty("trackPos", pos.position() TAGEDITOR_JS_READONLY);
|
||||||
tagObject.setProperty("trackTotal", pos.total() TAGEDITOR_JS_READONLY);
|
tagObject.setProperty("trackTotal", pos.total() TAGEDITOR_JS_READONLY);
|
||||||
pos = PositionInSet();
|
pos = PositionInSet();
|
||||||
try {
|
try {
|
||||||
pos = tag.value(KnownField::DiskPosition).toPositionIntSet();
|
pos = tag.value(KnownField::DiskPosition).toPositionInSet();
|
||||||
} catch(ConversionException &) {}
|
} catch(ConversionException &) {}
|
||||||
tagObject.setProperty("diskPos", pos.position() TAGEDITOR_JS_READONLY);
|
tagObject.setProperty("diskPos", pos.position() TAGEDITOR_JS_READONLY);
|
||||||
tagObject.setProperty("diskTotal", pos.total() TAGEDITOR_JS_READONLY);
|
tagObject.setProperty("diskTotal", pos.total() TAGEDITOR_JS_READONLY);
|
||||||
|
|
Loading…
Reference in New Issue