]> git.sesse.net Git - kdenlive/commitdiff
Make 2 pass option available to custom profiles
authorTill Theato <root@ttill.de>
Thu, 19 May 2011 19:12:06 +0000 (19:12 +0000)
committerTill Theato <root@ttill.de>
Thu, 19 May 2011 19:12:06 +0000 (19:12 +0000)
svn path=/trunk/kdenlive/; revision=5600

src/renderwidget.cpp

index 683035b17bd2cda453af47a1ebfb38666cc20bd9..ec84a1decb7abb8bbcb94636363af216ac357351 100644 (file)
@@ -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();