]> git.sesse.net Git - kdenlive/commitdiff
Fix dvd wizard crash:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 18 Oct 2009 11:09:54 +0000 (11:09 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 18 Oct 2009 11:09:54 +0000 (11:09 +0000)
http://kdenlive.org/mantis/view.php?id=1217

svn path=/trunk/kdenlive/; revision=4043

src/dvdwizardchapters.cpp

index 61e5187e045d300e2b516cb7b6eb4413f6f95667..2b24852c60b9318bf1cd76554c8bf30d1167a73b 100644 (file)
@@ -147,9 +147,7 @@ void DvdWizardChapters::setVobFiles(bool isPal, bool isWide, const QStringList m
     }
     if (isWide) profile.append("_wide");
     m_manager->resetProfiles(m_tc);
-
     if (m_monitor == NULL) {
-
         m_monitor = new Monitor("chapter", m_manager, profile, this);
         //m_monitor->start();
         QVBoxLayout *vbox = new QVBoxLayout;
@@ -159,11 +157,13 @@ void DvdWizardChapters::setVobFiles(bool isPal, bool isWide, const QStringList m
         adjustSize();*/
     } else m_monitor->resetProfile(profile);
 
+    m_view.vob_list->blockSignals(true);
     m_view.vob_list->clear();
     for (int i = 0; i < movies.count(); i++) {
         m_view.vob_list->addItem(movies.at(i), durations.at(i));
         m_view.vob_list->setItemData(i, chapters.at(i).split(';'), Qt::UserRole + 1);
     }
+    m_view.vob_list->blockSignals(false);
     slotUpdateChaptersList();
 }