Bug 304592 - Multiple entries for the same file in recent files menu
Summary: Multiple entries for the same file in recent files menu
Status: RESOLVED FIXED
Alias: None
Product: kde-windows
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-05 05:00 UTC by Ismael
Modified: 2013-05-10 20:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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