Prevent crash with corrupted keyframe effect

svn path=/trunk/kdenlive/; revision=4764
parent da2da135
......@@ -147,6 +147,7 @@ void KeyframeEdit::setupParam()
keyframe_list->setSelectionMode(QAbstractItemView::SingleSelection);
QStringList frames = m_params.at(0).attribute("keyframes").split(";", QString::SkipEmptyParts);
setEnabled(frames.count() > 0);
for (int i = 0; i < frames.count(); i++) {
keyframe_list->insertRow(i);
int currentpos = frames.at(i).section(':', 0, 0).toInt();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment