]> git.sesse.net Git - kdenlive/commitdiff
Fix possible crash in DVD wizard chapters:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 31 Jul 2011 17:00:49 +0000 (17:00 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 31 Jul 2011 17:00:49 +0000 (17:00 +0000)
http://kdenlive.org/mantis/view.php?id=2264

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

src/dvdwizardchapters.cpp

index baf682b1faba5059021b217673d52473c513f4c3..0804f5cb5d30005367f2c8d4b6994d5603159db2 100644 (file)
@@ -131,7 +131,7 @@ void DvdWizardChapters::slotRemoveChapter()
 
 void DvdWizardChapters::slotGoToChapter()
 {
-    m_monitor->setTimePos(m_tc.reformatSeparators(m_view.chapters_list->currentItem()->text() + ":00"));
+    if (m_view.chapters_list->currentItem()) m_monitor->setTimePos(m_tc.reformatSeparators(m_view.chapters_list->currentItem()->text() + ":00"));
 }
 
 void DvdWizardChapters::setVobFiles(bool isPal, bool isWide, const QStringList movies, const QStringList durations, const QStringList chapters)