diff --git a/src/gui/modals/ExportProjectDialog.cpp b/src/gui/modals/ExportProjectDialog.cpp index b9604ddd1..9e354696b 100644 --- a/src/gui/modals/ExportProjectDialog.cpp +++ b/src/gui/modals/ExportProjectDialog.cpp @@ -186,14 +186,10 @@ ExportProjectDialog::ExportProjectDialog(const QString& path, Mode mode, QWidget connect(m_fileFormatComboBox, qOverload(&QComboBox::currentIndexChanged), this, &ExportProjectDialog::onFileFormatChanged); - if (mode == Mode::ExportProject) - { - const auto pathExtension = QFileInfo{path}.completeSuffix().prepend("."); - const auto pathFormat = ProjectRenderer::getFileFormatFromExtension(pathExtension); - m_fileFormatComboBox->setCurrentIndex( - std::max(0, m_fileFormatComboBox->findData(static_cast(pathFormat)))); - } + const auto pathExtension = QFileInfo{path}.completeSuffix().prepend("."); + const auto pathFormat = ProjectRenderer::getFileFormatFromExtension(pathExtension); + m_fileFormatComboBox->setCurrentIndex(std::max(0, m_fileFormatComboBox->findData(static_cast(pathFormat)))); m_bitRateComboBox->setCurrentIndex(std::max(0, m_bitRateComboBox->findData(defaultBitRate))); m_bitDepthComboBox->setCurrentIndex(std::max(0, m_bitDepthComboBox->findData(static_cast(defaultBitDepth)))); m_stereoModeComboBox->setCurrentIndex(