When at beginning and using "go to previous keyframe" or at the end and using "go to next keyframe" + there was a keyframe the icon turned to "add keyframe"
svn path=/trunk/kdenlive/; revision=5534
void SimpleTimelineWidget::slotGoToNext()
{
+ if (m_position == m_duration)
+ return;
+
foreach (const int &keyframe, m_keyframes) {
if (keyframe > m_position) {
slotSetPosition(keyframe);
void SimpleTimelineWidget::slotGoToPrev()
{
+ if (m_position == 0)
+ return;
+
for (int i = m_keyframes.count() - 1; i >= 0; --i) {
if (m_keyframes.at(i) < m_position) {
slotSetPosition(m_keyframes.at(i));