Bug 431463

Summary: Breakpoint is duplicating after unset it by clicking into left bar of editor
Product: [Applications] kdevelop Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: CPP DebuggerAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal CC: niko.sams
Priority: NOR    
Version First Reported In: 5.6.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Piotr Mierzwinski 2021-01-11 21:03:02 UTC
SUMMARY

I set breakpoint (by left bar) at line N. I copied couple lines of code, let it be 4 and pasted about couple rows (let it be 8) before already set breakpoint, so at lie N-8.
I clicked into this breakpoint to unset it. Disappeared. I clicked again in the same place, and appeared 2 breakpoints set. Second one exactly 4 rows (the same lines I pasted early) above original one. In result I got second not wanted breakpoint.

STEPS TO REPRODUCE
1. Set breakpoint at line N by left bar of editor
2. Copy and paste 4 lines of code, 8 rows above line with breakpoint
3. Click into already set breakpoint
4. Set again breakpoint in the same place, by click again on left bar of editor

OBSERVED RESULT
Original breakpoint was duplicated 4 lines (number of lines of pasted code) above

EXPECTED RESULT
Any duplication of breakpoint couple rows above should not happen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: YES
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION