From 345a7e38e375dcb0525147252e6093a60bf93d66 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 31 Jul 2011 17:00:49 +0000 Subject: [PATCH] Fix possible crash in DVD wizard chapters: http://kdenlive.org/mantis/view.php?id=2264 svn path=/trunk/kdenlive/; revision=5816 --- src/dvdwizardchapters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dvdwizardchapters.cpp b/src/dvdwizardchapters.cpp index baf682b1..0804f5cb 100644 --- a/src/dvdwizardchapters.cpp +++ b/src/dvdwizardchapters.cpp @@ -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) -- 2.39.2