Bug 503304

Summary: [Bug] Ctrl+tab remembers all previously opened files even if they were closed
Product: [Applications] kdevelop Reporter: Ian H <master.haber>
Component: UI: generalAssignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal CC: igorkuo
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ian H 2025-04-24 18:12:21 UTC
SUMMARY
When you open a bunch of files and then close them, the list of files that shows up using ctrl+tab still contains all of them.
The list you get when you click on the button next to the tabs only shows the currently open file

STEPS TO REPRODUCE
1. Open a few files
2. Close them
3. Hit ctrl+tab

OBSERVED RESULT
Ctrl+tab list will show all files you close

EXPECTED RESULT
Ctrl+tab should only show currently open files


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.04
KDE Frameworks Version: 6.14.0
Qt Version: 6.8.2
Comment 1 Igor Kushnir 2025-04-25 07:47:54 UTC
Cannot reproduce with the minimal steps. Can reproduce by inserting the following step:
1.5. Start and finish a debug session.
The documents remain open in the Debug area and the document switcher (Ctrl+Tab) picks them. It also picks temporary patch files created in the Review area.
Entering the Debug session again after closing the files synchronizes the open document lists in the two areas, and the document switcher forgets about them. Similarly, entering the Review area again forgets about the old patch file (though adds a new one).