Commit b9c69e42 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Correctly show "auto" timeline preview profile if it was selected in settings

parent 649d3efb
Pipeline #261145 failed with stage
in 7 minutes and 18 seconds
......@@ -260,7 +260,8 @@ void KdenliveSettingsDialog::initProjectPage()
QWidget *p8 = new QWidget;
m_configProject.setupUi(p8);
// Timeline preview
QString currentPreviewData = QString("%1;%2").arg(KdenliveSettings::previewparams(), KdenliveSettings::previewextension());
QString currentPreviewData =
KdenliveSettings::previewparams().isEmpty() ? QString() : QString("%1;%2").arg(KdenliveSettings::previewparams(), KdenliveSettings::previewextension());
m_tlPreviewProfiles = new EncodingTimelinePreviewProfilesChooser(p8, true, currentPreviewData, false);
m_configProject.preview_profile_box->addWidget(m_tlPreviewProfiles);
auto *vbox = new QVBoxLayout;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment