From e076446fd33de398acebbc40313e0a51dfc48fa1 Mon Sep 17 00:00:00 2001 From: Sotonye Atemie Date: Sat, 31 Jan 2026 17:39:34 -0500 Subject: [PATCH] Set file format combo box unconditionally (#8237) --- src/gui/modals/ExportProjectDialog.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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(