fixed typo

This commit is contained in:
Martchus 2016-03-19 18:34:10 +01:00
parent 24ca68b15b
commit 782e1a8557
5 changed files with 6 additions and 6 deletions

View File

@ -87,7 +87,7 @@ void DbQueryWidget::insertSearchTermsFromTagEdit(TagEdit *tagEdit)
try {
TagValue trackValue = tagEdit->value(KnownField::TrackPosition);
if(!trackValue.isEmpty()) {
m_ui->trackSpinBox->setValue(trackValue.toPositionIntSet().position());
m_ui->trackSpinBox->setValue(trackValue.toPositionInSet().position());
trackValueOk = true;
}
} catch(const ConversionException &) {

View File

@ -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) {
disconnect(*conn);
if(parent == currentIndex) {
QModelIndex next = m_fileFilterModel->index(0, 0, parent);
const QModelIndex next = m_fileFilterModel->index(0, 0, parent);
if(next.isValid()) {
if(m_ui->filesTreeView->model()->hasChildren(next)) {
// next item is a directory -> keep on searching

View File

@ -727,7 +727,7 @@ void TagEditorWidget::showFile(char result)
m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Critical);
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) {
m_ui->parsingNotificationWidget->setNotificationType(NotificationType::Critical);
m_ui->parsingNotificationWidget->appendLine(tr("There are critical parsing notifications."));

View File

@ -731,7 +731,7 @@ void TagFieldEdit::updateValue(const TagValue &value, PreviousValueHandling prev
if(m_spinBoxes.second) {
PositionInSet pos;
try {
pos = value.toPositionIntSet();
pos = value.toPositionInSet();
} catch(const ConversionException &) {
conversionError = true;
}

View File

@ -63,13 +63,13 @@ TAGEDITOR_JS_VALUE &operator <<(TAGEDITOR_JS_VALUE &tagObject, const Tag &tag)
} catch(ConversionException &) {}
PositionInSet pos;
try {
pos = tag.value(KnownField::TrackPosition).toPositionIntSet();
pos = tag.value(KnownField::TrackPosition).toPositionInSet();
} catch(ConversionException &) {}
tagObject.setProperty("trackPos", pos.position() TAGEDITOR_JS_READONLY);
tagObject.setProperty("trackTotal", pos.total() TAGEDITOR_JS_READONLY);
pos = PositionInSet();
try {
pos = tag.value(KnownField::DiskPosition).toPositionIntSet();
pos = tag.value(KnownField::DiskPosition).toPositionInSet();
} catch(ConversionException &) {}
tagObject.setProperty("diskPos", pos.position() TAGEDITOR_JS_READONLY);
tagObject.setProperty("diskTotal", pos.total() TAGEDITOR_JS_READONLY);