From: Jean-Baptiste Mardelle Date: Sun, 31 Jul 2011 17:00:49 +0000 (+0000) Subject: Fix possible crash in DVD wizard chapters: X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=345a7e38e375dcb0525147252e6093a60bf93d66;p=kdenlive Fix possible crash in DVD wizard chapters: http://kdenlive.org/mantis/view.php?id=2264 svn path=/trunk/kdenlive/; revision=5816 --- 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)