From: Till Theato Date: Thu, 19 May 2011 19:12:06 +0000 (+0000) Subject: Make 2 pass option available to custom profiles X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8feb092507a7bff209dae60353bcd000bd82c969;hp=11a4d09164d3e0d7dcbe5891cb5ccc8c50c89e17;p=kdenlive Make 2 pass option available to custom profiles svn path=/trunk/kdenlive/; revision=5600 --- diff --git a/src/renderwidget.cpp b/src/renderwidget.cpp index 683035b1..ec84a1de 100644 --- a/src/renderwidget.cpp +++ b/src/renderwidget.cpp @@ -1057,7 +1057,10 @@ void RenderWidget::refreshView() destination = m_view.destination_list->itemData(m_view.destination_list->currentIndex()).toString(); KIcon brokenIcon("dialog-close"); - m_view.checkTwoPass->setEnabled(m_view.format_list->currentItem()->data(TwoPassRole).toBool()); + if (m_view.format_list->currentItem()->data(TwoPassRole).canConvert(QVariant::Bool)) + m_view.checkTwoPass->setEnabled(m_view.format_list->currentItem()->data(TwoPassRole).toBool()); + else + m_view.checkTwoPass->setEnabled(true); const QStringList formatsList = KdenliveSettings::supportedformats(); const QStringList vcodecsList = KdenliveSettings::videocodecs();