Bug 485517

Summary: Bug | Extract Clip operation not working as intended when applied on Multiple Clips in specific order.
Product: [Applications] kdenlive Reporter: sherkhan30452
Component: Timeline & EditingAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: berndmj, fritzibaby
Priority: NOR    
Version First Reported In: 24.02.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 25.04.0
Sentry Crash Report:
Attachments: Demo of Extract Clip Operation

Description sherkhan30452 2024-04-13 23:32:33 UTC
Created attachment 168484 [details]
Demo of Extract Clip Operation

SUMMARY
Extract Clip operation (aka Ripple Delete) when selecting alternating clips (please refer GIF files) and then performing operation removes the selected clip but also includes non-selected clip(s) in the middle (which shouldn't occur)

STEPS TO REPRODUCE
1. Insert Clips (for example, Clip A, B, C, D) into timeline
2. Select Clip B and Clip D
3. Apply Clip Extract operation

OBSERVED RESULT
Removes Clip B and Clip D with no space behind but also Removes Clip C in the process.

EXPECTED RESULT
Remove Clip B & D with no space - Clip C will move next to Clip A with no space in between.

SOFTWARE/OS VERSIONS
Windows: 
Edition	Windows 10 Home Single Language
Version	22H2
OS build	19045.4170
Experience	Windows Feature Experience Pack 1000.19054.1000.0
Processor	Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz   2.30 GHz
Installed RAM	16.0 GB (15.9 GB usable)
System type	64-bit operating system, x64-based processor
KDE Frameworks Version: Version 6.0.0
Qt Version: Version 6.6.2 (built against 6.6.2)

ADDITIONAL INFORMATION
Comment 1 Bernd 2024-04-13 23:52:08 UTC
I can confirm this behavior on Linux with appimage 24.02.1, and I support this to be fixed so that only the selected clips are deleted/extracted and the space they occupy in the timeline be deleted (ripple delete).
Comment 2 sherkhan30452 2025-04-09 15:14:49 UTC
Update: 09/04/25

Still present in newer nightly build

SOFTWARE/OS VERSIONS
Kdenlive: 25.07.70
kdenlive-master-9999-windows-gcc-x86_64
MLT: 7.30.0
FFmpeg
KDE Frameworks: 6.12.0
Qt: Using 6.8.1 and built against 6.8.1
Windows 10 Version 22H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.19045
Comment 3 Jean-Baptiste Mardelle 2025-04-10 10:37:40 UTC
Git commit ade168ca11ddb25a8591da8751f75e39a799563c by Jean-Baptiste Mardelle.
Committed on 10/04/2025 at 10:37.
Pushed by mardelle into branch 'release/25.04'.

Fix Extract clip with multiple selection
FIXED-IN: 25.04.0

M  +4    -2    src/timeline2/model/timelinefunctions.cpp
M  +2    -2    src/timeline2/model/timelinemodel.cpp
M  +1    -1    src/timeline2/model/timelinemodel.hpp
M  +32   -33   src/timeline2/view/timelinecontroller.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/ade168ca11ddb25a8591da8751f75e39a799563c