Bug 304592

Summary: Multiple entries for the same file in recent files menu
Product: kde-windows Reporter: Ismael <ismaelbej>
Component: generalAssignee: KDE-Windows <kde-windows>
Status: RESOLVED FIXED    
Severity: normal CC: ps_ml
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Ismael 2012-08-05 05:00:50 UTC
If we open and close the same file multiple times, then the same entrie appear multiple times.
I've tried this with Kate, KWrite and Kile, using KDE for Windows 4.8, under Windows 7 Pro 64bits. Using the precompiled binaries for MingW64.



Reproducible: Always

Steps to Reproduce:
1. Launch KWrite
2. Open a file 
3. Close open file
4. Repeat opening and closing the same file multiple times
Actual Results:  
One entry is added for each time the file is opened.


Expected Results:  
Only one entry should be added if the same file is open multiple times.

The same occur with Kate and Kile (in the recent projects).

I've tried debugging and it appear that in KRecentFilesAction::addUrl when checking for existing entries the check use the file's path with backward slashes, but they are stored with forward slashes.
Comment 1 Patrick Spendrin 2013-05-10 20:29:40 UTC
the current 4.10.2-1 package of kdelibs fixes this bug.
Comment 2 Patrick Spendrin 2013-05-10 20:46:24 UTC
Git commit b45075cae78b6d899e23f09133bbfb95d5a8bb7a by Patrick Spendrin.
Committed on 10/05/2013 at 22:25.
Pushed by sengels into branch 'KDE/4.10'.

do not add files have been added already.

M  +5    -0    kdeui/actions/krecentfilesaction.cpp

http://commits.kde.org/kdelibs/b45075cae78b6d899e23f09133bbfb95d5a8bb7a