Bug 389113

Summary: The most recently used document order is not respected when a document is closed
Product: [Applications] kate Reporter: Ramiro Polla <ramiro.polla>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: justin.zobel
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Simple fix

Description Ramiro Polla 2018-01-17 14:55:15 UTC
Created attachment 109938 [details]
Simple fix

Older versions of kate (in Ubuntu 14.04 I think) would follow the most recently used document order when closing a document.

To reproduce:
- Open file "a", "b", "c", and "d" (in this order)
- Use "Previous Document" twice (you should be back at "b")
- Close document

The expected behaviour is for "c" to be shown.

The attached patch is a simple fix that Works For Me™, but I'm sure you will find a cleaner and better way to do it.
Comment 1 Justin Zobel 2020-10-27 04:25:34 UTC
Please place your patch (if still needed) through KDE Gitlab (https://invent.kde.org/utilities/kate)