]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardchapters.cpp
Fix possible crash in DVD wizard chapters:
[kdenlive] / 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)