Bug 360322

Summary: 15.13.0 git master - Cannot remove clip in timeline when it was inserted overwriting another clip (video example included)
Product: [Applications] kdenlive Reporter: Unknown <null>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
URL: https://youtu.be/T7Oacz6qQyQ
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Unknown 2016-03-09 18:09:26 UTC
See video in URL field for example.

Whenever I Press "V" to insert a clip in the timeline, when it overwrites another clip currently on the same track, I cannot remote the overwriting clip that I just inserted.

Running from Konsole gives this error:
Error deleting clip at 17.767750
"Error removing clip at 00:00:17,18 on track Video 3"


Reproducible: Sometimes

Steps to Reproduce:
1. Insert a clip in the timeline from Clip Monitor (whether inserting with the mouse, or pressing "V")
2. Insert a clip in the timeline from Clip Monitor by pressing "V", overwritting a clip in the timeline on any track.
3. Try to press "Delete" keyboard key or right-click on the clip that was just inserted and click "Delete Selected Item".

Actual Results:  
Clip does not get removed from the timeline. Status bar at bottom gives error.

Expected Results:  
Clip gets removed from timeline without issue.

Bug discovered while using Kdenlive latest git build (.deb package made 2016.03.09) on Kubuntu 15.10 x64, KDE Framework 5.18.0 from Kubuntu backports ppa.
Comment 1 Jean-Baptiste Mardelle 2016-03-12 23:01:11 UTC
Git commit 931c624b59800ce802f479e08b052618436307a8 by Jean-Baptiste Mardelle.
Committed on 12/03/2016 at 23:01.
Pushed by mardelle into branch 'master'.

Fix overwrite mode corrupting timeline

M  +2    -2    src/monitor/monitor.cpp
M  +36   -27   src/timeline/customtrackview.cpp
M  +4    -3    src/timeline/customtrackview.h
M  +2    -3    src/timeline/track.cpp

http://commits.kde.org/kdenlive/931c624b59800ce802f479e08b052618436307a8
Comment 2 Unknown 2016-03-14 03:28:54 UTC
Looks like it works no in the latest git build for Kubuntu. Thanks JB!