Skip to content

Commit e076446

Browse files
authored
Set file format combo box unconditionally (#8237)
1 parent 13ea2ee commit e076446

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/gui/modals/ExportProjectDialog.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,10 @@ ExportProjectDialog::ExportProjectDialog(const QString& path, Mode mode, QWidget
186186
connect(m_fileFormatComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this,
187187
&ExportProjectDialog::onFileFormatChanged);
188188

189-
if (mode == Mode::ExportProject)
190-
{
191-
const auto pathExtension = QFileInfo{path}.completeSuffix().prepend(".");
192-
const auto pathFormat = ProjectRenderer::getFileFormatFromExtension(pathExtension);
193-
m_fileFormatComboBox->setCurrentIndex(
194-
std::max(0, m_fileFormatComboBox->findData(static_cast<int>(pathFormat))));
195-
}
189+
const auto pathExtension = QFileInfo{path}.completeSuffix().prepend(".");
190+
const auto pathFormat = ProjectRenderer::getFileFormatFromExtension(pathExtension);
196191

192+
m_fileFormatComboBox->setCurrentIndex(std::max(0, m_fileFormatComboBox->findData(static_cast<int>(pathFormat))));
197193
m_bitRateComboBox->setCurrentIndex(std::max(0, m_bitRateComboBox->findData(defaultBitRate)));
198194
m_bitDepthComboBox->setCurrentIndex(std::max(0, m_bitDepthComboBox->findData(static_cast<int>(defaultBitDepth))));
199195
m_stereoModeComboBox->setCurrentIndex(

0 commit comments

Comments
 (0)